org.apache.avalon.phoenix.components.kernel
Class DefaultKernel
java.lang.Object
|
+--AbstractLogEnabled
|
+--org.apache.avalon.phoenix.components.kernel.DefaultKernel
- All Implemented Interfaces:
- Kernel, KernelMBean
- Direct Known Subclasses:
- BeanShellKernel
- public class DefaultKernel
- extends AbstractLogEnabled
- implements Kernel, KernelMBean
The ServerKernel is the core of the Phoenix system.
The kernel is responsible for orchestrating low level services
such as loading, configuring and destroying blocks. It also
gives access to basic facilities such as scheduling sub-systems,
protected execution contexts, naming and directory services etc.
Note that no facilities are available until after the Kernel has been
configured and initialized.
- Author:
- Peter Donald, Leo Simons
- See Also:
- Serialized Form
Fields inherited from interface org.apache.avalon.phoenix.interfaces.Kernel |
ROLE |
Fields inherited from interface org.apache.avalon.phoenix.interfaces.KernelMBean |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultKernel
public DefaultKernel()
service
public void service(ServiceManager serviceManager)
throws ServiceException
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
ConfigurationException
initialize
public void initialize()
throws Exception
Exception
dispose
public void dispose()
getApplicationNames
public String[] getApplicationNames()
- Description copied from interface:
Kernel
- Gets the list of applications running in the container
- Specified by:
getApplicationNames
in interface Kernel
- Returns:
- applicationNames The array of application names
getApplication
public Application getApplication(String name)
- Description copied from interface:
Kernel
- Gets the named application
- Specified by:
getApplication
in interface Kernel
- Parameters:
name
- the name of application
addApplication
public void addApplication(SarMetaData metaData,
ClassLoader classLoader,
Logger logger,
Configuration server)
throws Exception
- Description copied from interface:
Kernel
- Adds an application to the container
- Specified by:
addApplication
in interface Kernel
Exception
removeApplication
public void removeApplication(String name)
throws Exception
- Description copied from interface:
Kernel
- Removes the application from the container
- Specified by:
removeApplication
in interface Kernel
- Parameters:
name
- the name of application to remove
Exception
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.