|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.excalibur.extension.DefaultPackageRepository
Interface used to contain "Optional Packages" (formerly known as "Standard Extensions"). It is assumed that each "Optional Package" is represented by a single file on the file system. This Repository searches a path to find the Optional Packages.
OptionalPackage
,
PackageRepository
Constructor Summary | |
DefaultPackageRepository(java.io.File[] path)
Construct a package repository with path. |
Method Summary | |
protected void |
cacheOptionalPackage(OptionalPackage optionalPackage)
Add OptionalPackage to internal cache of Optional Packages. |
protected void |
clearCache()
Clear internal cache of optional packages. |
protected void |
debug(java.lang.String message)
|
OptionalPackage[] |
getOptionalPackages(Extension extension)
Return all the OptionalPackage s that satisfy specified
Extension . |
protected void |
scanPath()
Scan the path for this repository and reload all the "Optional Packages" found in the path. |
protected void |
setPath(java.io.File[] path)
Set the path for the Repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPackageRepository(java.io.File[] path)
path
- The set of directories in which to look for Optional PackagesMethod Detail |
public OptionalPackage[] getOptionalPackages(Extension extension)
OptionalPackage
s that satisfy specified
Extension
. It is expected that this Extension
object will be one retrieved via getLocalExtension() method. If the
specified Extension
is not local then null
is returned.getOptionalPackages
in interface PackageRepository
extension
- Description of the optional package#isLocal()
protected void setPath(java.io.File[] path)
path
- the list of directories in which to searchprotected final void scanPath()
protected final void clearCache()
protected final void cacheOptionalPackage(OptionalPackage optionalPackage)
optionalPackage
- the OptionalPackage to be added to repositoryprotected void debug(java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |