|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.context.DefaultContext
org.apache.avalon.composition.model.impl.DefaultClassLoaderContext
Implementation of a system context that exposes a system wide set of parameters.
Constructor Summary | |
DefaultClassLoaderContext(Logger logger,
Repository repository,
File base,
ClassLoader parent,
ClassLoaderDirective directive)
Creation of a root classloader context. |
|
DefaultClassLoaderContext(Logger logger,
Repository repository,
File base,
ClassLoader parent,
OptionalPackage[] packages,
ExtensionManager manager,
TypeRepository types,
ServiceRepository services,
ClassLoaderDirective directive,
URL[] implied)
Creation of a new classloader context. |
Method Summary | |
File |
getBaseDirectory()
Return the base directory from which relative library directives and fileset directory paths may be resolved. |
ClassLoader |
getClassLoader()
Return the classloader to be assigned as the parernt classloader. |
ClassLoaderDirective |
getClassLoaderDirective()
Return the classloader directive to be applied to the classloader model. |
ExtensionManager |
getExtensionManager()
Return the extension manager established by the parent classloader model. |
URL[] |
getImplicitURLs()
Return any implied urls to include in the classloader. |
Logger |
getLogger()
Return the system logging channel. |
OptionalPackage[] |
getOptionalPackages()
Return the containment classloader. |
Repository |
getRepository()
Return the system context. |
ServiceRepository |
getServiceRepository()
Return the service repository established by the parent classloader. |
TypeRepository |
getTypeRepository()
Return the type repository established by the parent classloader. |
Methods inherited from class org.apache.avalon.framework.context.DefaultContext |
checkWriteable, get, getContextData, getParent, hide, makeReadOnly, put |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.context.Context |
get |
Constructor Detail |
public DefaultClassLoaderContext(Logger logger, Repository repository, File base, ClassLoader parent, ClassLoaderDirective directive)
logger
- the logging channel to assign to the classloader modelrepository
- a local repositorybase
- the system base directoryparent
- the parent classloaderdirective
- the classloader directivepublic DefaultClassLoaderContext(Logger logger, Repository repository, File base, ClassLoader parent, OptionalPackage[] packages, ExtensionManager manager, TypeRepository types, ServiceRepository services, ClassLoaderDirective directive, URL[] implied)
logger
- the logging channel to assign to the classloader modelrepository
- a local repositorybase
- the system base directoryparent
- the parent classloaderpackages
- the set of optional packages established under
current classloader chainmanager
- the optional extions package manager established
by the parent classloadertypes
- the parent type managerservices
- the parent service managerdirective
- the classloader directiveMethod Detail |
public Logger getLogger()
getLogger
in interface ClassLoaderContext
public Repository getRepository()
getRepository
in interface ClassLoaderContext
public File getBaseDirectory()
getBaseDirectory
in interface ClassLoaderContext
public ClassLoader getClassLoader()
getClassLoader
in interface ClassLoaderContext
public OptionalPackage[] getOptionalPackages()
getOptionalPackages
in interface ClassLoaderContext
public ExtensionManager getExtensionManager()
getExtensionManager
in interface ClassLoaderContext
public TypeRepository getTypeRepository()
getTypeRepository
in interface ClassLoaderContext
public ServiceRepository getServiceRepository()
getServiceRepository
in interface ClassLoaderContext
public ClassLoaderDirective getClassLoaderDirective()
getClassLoaderDirective
in interface ClassLoaderContext
public URL[] getImplicitURLs()
getImplicitURLs
in interface ClassLoaderContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |