|
|||||||||||
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
Default implementation of a deployment context.
Field Summary |
Fields inherited from interface org.apache.avalon.composition.model.DeploymentContext |
CLASSLOADER_KEY, HOME_KEY, NAME_KEY, PARTITION_KEY, TEMP_KEY |
Constructor Summary | |
DefaultDeploymentContext(Logger logger,
String name,
ContainmentContext context,
DeploymentProfile 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. |
ContainmentContext |
getContainmentContext()
Return the containment context. |
Class |
getDeploymentClass()
Return the component class. |
File |
getHomeDirectory()
Return the working directory. |
Logger |
getLogger()
Return the logging channel. |
String |
getName()
Return the name that the component will execute under. |
String |
getPartitionName()
Return the partition name that the component will execute within. |
DeploymentProfile |
getProfile()
Return the deployment profile. |
SystemContext |
getSystemContext()
Return the system context. |
File |
getTempDirectory()
Return the temporary directory. |
Type |
getType()
Return the component type. |
void |
register(EntryModel model)
Add a context entry model to the deployment context. |
Object |
resolve(String alias)
Get a context entry from the deployment context. |
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 |
Constructor Detail |
public DefaultDeploymentContext(Logger logger, String name, ContainmentContext context, DeploymentProfile profile, Type type, Class clazz, File home, File temp, String partition)
logger
- the logging channel to assignname
- the deployment context namecontext
- the containment context in which this
deployment context is scopedprofile
- the deployment profiletype
- the underlying component typeclazz
- the compoent deployment classhome
- the home working directorytemp
- a temporary directorypartition
- the partition nameMethod Detail |
public String getPartitionName()
getPartitionName
in interface DeploymentContext
public String getName()
getName
in interface DeploymentContext
public SystemContext getSystemContext()
getSystemContext
in interface DeploymentContext
public ContainmentContext getContainmentContext()
getContainmentContext
in interface DeploymentContext
public File getHomeDirectory()
getHomeDirectory
in interface DeploymentContext
public File getTempDirectory()
getTempDirectory
in interface DeploymentContext
public Logger getLogger()
getLogger
in interface DeploymentContext
public DeploymentProfile getProfile()
getProfile
in interface DeploymentContext
public Type getType()
getType
in interface DeploymentContext
public Class getDeploymentClass()
getDeploymentClass
in interface DeploymentContext
public ClassLoader getClassLoader()
getClassLoader
in interface DeploymentContext
public void register(EntryModel model)
register
in interface DeploymentContext
model
- the entry model
IllegalArgumentException
- if model key is unknownpublic Object resolve(String alias) throws ContextException
resolve
in interface DeploymentContext
alias
- the entry lookup key
ContextException
- if the key is unknown
ModelRuntimeException
- if the key is unknown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |