|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.composition.model.impl.DefaultClassLoaderModel
Implementation of a classloader model within which a repository, a base directory and a classloader directive are associated together enabling the creation of a fully qualified classpath.
The classpath established by this model implementation applies the following logic:
Class dependecies include the Excalibur i18n, the assembly repository package, the avalon framework and meta packages, and the extensions package.
Constructor Summary | |
DefaultClassLoaderModel(ClassLoaderContext context)
Creation of a new classloader model. |
Method Summary | |
ClassLoaderContext |
createChildContext(Logger logger,
ContainmentProfile profile,
URL[] implied)
Creation of a classloader context using this model as the relative parent. |
static ClassLoaderModel |
createClassLoaderModel(ClassLoaderContext context)
|
File[] |
expandFileSetDirectives(File base,
FilesetDirective[] filesets)
Return an array of files corresponding to the expansion of the filesets declared within the directive. |
ClassLoader |
getClassLoader()
Return the classloader established by this classloader model. |
ExtensionManager |
getExtensionManager()
Return the optional extensions manager. |
OptionalPackage[] |
getOptionalPackages()
Return the set of local established optional packages. |
OptionalPackage[] |
getOptionalPackages(boolean policy)
Return the set of optional packages already established including the optional packages established by any parent classloader model. |
URL[] |
getQualifiedClassPath()
Return the fully qualified classpath including extension jar files resolved relative to the classpath directives in the meta-data and any parent classloader models. |
ServiceRepository |
getServiceRepository()
Return the classloader model service repository. |
TypeRepository |
getTypeRepository()
Return the type repository managed by this containment context. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultClassLoaderModel(ClassLoaderContext context) throws ModelException
context
- the classloader contextMethod Detail |
public static ClassLoaderModel createClassLoaderModel(ClassLoaderContext context) throws ModelException
ModelException
public ClassLoaderContext createChildContext(Logger logger, ContainmentProfile profile, URL[] implied)
createChildContext
in interface ClassLoaderModel
logger
- the loggiong channelprofile
- the profile directiveimplied
- a sequence of implied urls
public TypeRepository getTypeRepository()
getTypeRepository
in interface ClassLoaderModel
public ServiceRepository getServiceRepository()
getServiceRepository
in interface ClassLoaderModel
public ExtensionManager getExtensionManager()
getExtensionManager
in interface ClassLoaderModel
public OptionalPackage[] getOptionalPackages()
getOptionalPackages
in interface ClassLoaderModel
public OptionalPackage[] getOptionalPackages(boolean policy)
getOptionalPackages
in interface ClassLoaderModel
policy
- if TRUE, return the local and all ancestor optional
package - if FALSE only return the local packages
public URL[] getQualifiedClassPath()
getQualifiedClassPath
in interface ClassLoaderModel
public ClassLoader getClassLoader()
getClassLoader
in interface ClassLoaderModel
public File[] expandFileSetDirectives(File base, FilesetDirective[] filesets) throws IOException
base
- the base directory against which relative
file references will be resolved
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |