|
|||||||||||
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.DefaultContainmentContext
Implementation of a system context that exposes a system wide set of parameters.
Constructor Summary | |
DefaultContainmentContext(Logger logger,
SystemContext system,
ClassLoaderModel model,
ContainmentProfile profile)
Creation of a new containment context. |
|
DefaultContainmentContext(Logger logger,
SystemContext system,
ClassLoaderModel model,
File home,
File temp,
ContainmentProfile profile,
String partition,
String name)
Creation of a new containment context. |
Method Summary | |
ClassLoader |
getClassLoader()
Return the containment classloader. |
ClassLoaderModel |
getClassLoaderModel()
Return the containment classloader model. |
ContainmentProfile |
getContainmentProfile()
Return the containment profile. |
File |
getHomeDirectory()
Return the working directory from which containers may establish persistent content. |
Logger |
getLogger()
Return the logging channel. |
String |
getName()
Return the name that the container has been assigned. |
String |
getPartitionName()
Return the partition name that the container is established with. |
SystemContext |
getSystemContext()
Return the system context. |
File |
getTempDirectory()
Return the temporary directory from which a container may use to establish a transient content directory. |
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 DefaultContainmentContext(Logger logger, SystemContext system, ClassLoaderModel model, ContainmentProfile profile)
logger
- the logging channel to assignsystem
- the system contextmodel
- the classloader modelprofile
- the containment profilepublic DefaultContainmentContext(Logger logger, SystemContext system, ClassLoaderModel model, File home, File temp, ContainmentProfile profile, String partition, String name)
logger
- the logging channel to assignsystem
- the system contextmodel
- the classloader modelhome
- the directory for the containertemp
- a temporary directory for the containerprofile
- the containment profilepartition
- the partition that this containment
context is established withinname
- the assigned containment context nameMethod Detail |
public String getName()
getName
in interface ContainmentContext
public String getPartitionName()
getPartitionName
in interface ContainmentContext
public Logger getLogger()
getLogger
in interface ContainmentContext
public SystemContext getSystemContext()
getSystemContext
in interface ContainmentContext
public File getHomeDirectory()
getHomeDirectory
in interface ContainmentContext
public File getTempDirectory()
getTempDirectory
in interface ContainmentContext
public ContainmentProfile getContainmentProfile()
getContainmentProfile
in interface ContainmentContext
public ClassLoaderModel getClassLoaderModel()
getClassLoaderModel
in interface ContainmentContext
public ClassLoader getClassLoader()
getClassLoader
in interface ContainmentContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |