org.apache.avalon.phoenix.components.kernel
Class DefaultKernel

org.apache.avalon.phoenix.components.kernel.DefaultKernel
All Implemented Interfaces:
Kernel, KernelMBean
Direct Known Subclasses:
BeanShellKernel

public class DefaultKernel
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

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, ClassLoader classLoader, Logger logger, Configuration server)
          Adds an application to the container
 void configure(Configuration configuration)
           
 void dispose()
           
 Application getApplication(String name)
          Gets the named application
 String[] getApplicationNames()
          Gets the list of applications running in the container
 void initialize()
           
 void removeApplication(String name)
          Removes the application from the container
 void service(ServiceManager serviceManager)
           
 

Constructor Detail

DefaultKernel

public DefaultKernel()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException

configure

public void configure(Configuration configuration)
               throws ConfigurationException

initialize

public void initialize()
                throws 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
Following copied from interface: org.apache.avalon.phoenix.interfaces.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
Following copied from interface: org.apache.avalon.phoenix.interfaces.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

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
Following copied from interface: org.apache.avalon.phoenix.interfaces.Kernel
Parameters:
name - the name of application to remove


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.