|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defintion of a system context that exposes a system wide set of parameters.
Method Summary | |
void |
commission(DeploymentModel model)
Request the commissioning of a runtime for a supplied deployment model. |
void |
decommission(DeploymentModel model)
Request the decommissioning of a runtime for a supplied deployment model. |
File |
getAnchorDirectory()
Return the anchor directory from which a container may use to resolve relative classpath references. |
ClassLoader |
getAPIClassLoader()
Return the API classloader. |
File |
getBaseDirectory()
Return the base directory from which relative references should be resolved. |
long |
getDefaultDeploymentTimeout()
Return the default deployment phase timeout value. |
File |
getHomeDirectory()
Return the home directory from which containers may establish persistent content. |
Logger |
getLogger()
Return the system logging channel. |
LoggingManager |
getLoggingManager()
Return the logging manager. |
ModelFactory |
getModelFactory()
Return the model factory. |
Repository |
getRepository()
Return the application repository from which resource directives can be resolved. |
ClassLoader |
getSPIClassLoader()
Return the SPI classloader. |
File |
getTempDirectory()
Return the temp directory from which containers may establish non-persistent content. |
boolean |
isCodeSecurityEnabled()
Return the enabled status of the code security policy. |
boolean |
isTraceEnabled()
Return the system trace flag. |
void |
release(DeploymentModel model,
Object instance)
Request the release of an object from the runtime. |
Object |
resolve(DeploymentModel model)
Request resolution of an object from the runtime. |
Object |
resolve(DeploymentModel model,
boolean proxy)
Request resolution of an object from the runtime. |
String |
toString(Object object)
Prepare a string representation of an object for presentation. |
String |
toString(Object[] objects)
Prepare a string representation of an object array for presentation. |
Methods inherited from interface org.apache.avalon.framework.context.Context |
get |
Method Detail |
public ModelFactory getModelFactory()
public File getBaseDirectory()
public File getHomeDirectory()
public File getTempDirectory()
public File getAnchorDirectory()
public Repository getRepository()
public boolean isTraceEnabled()
public ClassLoader getSPIClassLoader()
public ClassLoader getAPIClassLoader()
public LoggingManager getLoggingManager()
public Logger getLogger()
public long getDefaultDeploymentTimeout()
public boolean isCodeSecurityEnabled()
public void commission(DeploymentModel model) throws Exception
model
- the deployment model
Exception
- of a commissioning error occurspublic void decommission(DeploymentModel model)
model
- the deployment model
Exception
- of a commissioning error occurspublic Object resolve(DeploymentModel model) throws Exception
model
- the deployment model
Exception
- if a deployment error occurspublic Object resolve(DeploymentModel model, boolean proxy) throws Exception
model
- the deployment modelproxy
- if TRUE the return value will be proxied if the
underlying component typoe suppports proxy representation
Exception
- if a deployment error occurspublic void release(DeploymentModel model, Object instance)
model
- the deployment modelinstance
- the object to release
Exception
- if a deployment error occurspublic String toString(Object object)
object
- the object to parse
public String toString(Object[] objects)
objects
- the array of objects
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |