org.apache.avalon.phoenix.interfaces
Interface ApplicationContext


public interface ApplicationContext

Manage the "context" in which Applications operate.

Author:
Peter Donald

Field Summary
static String ROLE
           
 
Method Summary
 void exportObject(String name, Class[] interfaceClasses, Object object)
          Export specified object into management system.
 ClassLoader getClassLoader()
          Get ClassLoader for the current application.
 Configuration getConfiguration(String component)
          Get the Configuration for specified component.
 Logger getLogger(String name)
          Get logger with category for application.
 SarMetaData getMetaData()
           
 org.apache.excalibur.threadcontext.ThreadContext getThreadContext()
           
 void unexportObject(String name)
          Unexport specified object from management system.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

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 export
interfaceClasses - the interface of object with which to export
object - 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.