|
|||||||||||
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.DefaultDeploymentContext
org.apache.avalon.composition.model.impl.DefaultComponentContext
Default implementation of a deployment context that is used as the primary constructor argument when creating a new component model.
Field Summary |
Fields inherited from interface org.apache.avalon.composition.provider.ComponentContext |
CLASSLOADER_KEY, HOME_KEY, NAME_KEY, PARTITION_KEY, TEMP_KEY |
Fields inherited from interface org.apache.avalon.composition.provider.DeploymentContext |
SEPARATOR |
Constructor Summary | |
DefaultComponentContext(Logger logger,
String name,
SystemContext system,
ClassLoader classloader,
DependencyGraph graph,
ContainmentModel model,
ComponentProfile profile,
Type type,
Class clazz,
File home,
File temp,
String partition)
Creation of a new deployment context. |
Method Summary | |
ClassLoader |
getClassLoader()
Return the classloader for the component. |
ComponentProfile |
getComponentProfile()
Return the deployment profile. |
ContainmentModel |
getContainmentModel()
Return the enclosing containment model. |
Class |
getDeploymentClass()
Return the component class. |
File |
getHomeDirectory()
Return the working directory. |
File |
getTempDirectory()
Return the temporary directory. |
Type |
getType()
Return the component type. |
Methods inherited from class org.apache.avalon.composition.model.impl.DefaultDeploymentContext |
getDependencyGraph, getLogger, getMode, getName, getPartitionName, getProfile, getQualifiedName, getSystemContext |
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.composition.provider.ComponentContext |
getSystemContext |
Methods inherited from interface org.apache.avalon.composition.provider.DeploymentContext |
getDependencyGraph, getLogger, getMode, getName, getPartitionName, getProfile, getQualifiedName |
Methods inherited from interface org.apache.avalon.framework.context.Context |
get |
Constructor Detail |
public DefaultComponentContext(Logger logger, String name, SystemContext system, ClassLoader classloader, DependencyGraph graph, ContainmentModel model, ComponentProfile profile, Type type, Class clazz, File home, File temp, String partition)
logger
- the logging channel to assignname
- the deployment context namesystem
- the system contextclassloader
- the containers classloadergraph
- the containers dependency graphmodel
- the parent containment modelprofile
- the component deployment profiletype
- the underlying component typeclazz
- the component deployment classhome
- the home working directorytemp
- a temporary directorypartition
- the partition nameMethod Detail |
public ContainmentModel getContainmentModel()
getContainmentModel
in interface ComponentContext
public File getHomeDirectory()
getHomeDirectory
in interface ComponentContext
public File getTempDirectory()
getTempDirectory
in interface ComponentContext
public ComponentProfile getComponentProfile()
getComponentProfile
in interface ComponentContext
public Type getType()
getType
in interface ComponentContext
public Class getDeploymentClass()
getDeploymentClass
in interface ComponentContext
public ClassLoader getClassLoader()
getClassLoader
in interface ComponentContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |