org.apache.avalon.phoenix.interfaces
Interface ApplicationContext
- public interface ApplicationContext
Manage the "context" in which Applications operate.
- Author:
- Peter Donald
ROLE
public static final String ROLE
getMetaData
public SarMetaData getMetaData()
getThreadContext
public org.apache.excalibur.threadcontext.ThreadContext getThreadContext()
exportObject
public void exportObject(String name,
Class[] interfaceClasses,
Object object)
throws Exception
- Export specified object into management system.
The object is exported using specifed interface
and using the specified name.
- Parameters:
name
- the name of object to exportinterfaceClasses
- the interface of object with which to exportobject
- the actual object to export
unexportObject
public void unexportObject(String name)
throws Exception
- Unexport specified object from management system.
- Parameters:
name
- the name of object to unexport
getClassLoader
public ClassLoader getClassLoader()
- Get ClassLoader for the current application.
- Returns:
- the ClassLoader
getConfiguration
public Configuration getConfiguration(String component)
throws ConfigurationException
- Get the Configuration for specified component.
- Parameters:
component
- the component- Returns:
- the Configuration
getLogger
public Logger getLogger(String name)
- Get logger with category for application.
Note that this name may not be the absolute category.
- Parameters:
name
- the name of logger- Returns:
- the Logger
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.