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

Field Summary
 
Fields inherited from interface org.apache.avalon.phoenix.interfaces.Kernel
ROLE
 
Fields inherited from interface org.apache.avalon.phoenix.interfaces.KernelMBean
ROLE
 
Constructor Summary
DefaultKernel()
           
 
Method Summary
 void addApplication(SarMetaData metaData, java.io.File workDirectory, java.lang.ClassLoader classLoader, Logger logger, Configuration server)
          Adds an application to the container
 void configure(Configuration configuration)
           
 void dispose()
           
 Application getApplication(java.lang.String name)
          Gets the named application
 java.lang.String[] getApplicationNames()
          Gets the list of applications running in the container
 void initialize()
           
 void removeApplication(java.lang.String name)
          Removes the application from the container
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKernel

public DefaultKernel()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
ServiceException

configure

public void configure(Configuration configuration)
               throws ConfigurationException
ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception
java.lang.Exception

dispose

public void dispose()

getApplicationNames

public java.lang.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(java.lang.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,
                           java.io.File workDirectory,
                           java.lang.ClassLoader classLoader,
                           Logger logger,
                           Configuration server)
                    throws java.lang.Exception
Description copied from interface: Kernel
Adds an application to the container

Specified by:
addApplication in interface Kernel
java.lang.Exception

removeApplication

public void removeApplication(java.lang.String name)
                       throws java.lang.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
java.lang.Exception


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.