org.jboss.portal.server.kernel
Class Kernel

java.lang.Object
  extended by org.jboss.portal.server.kernel.Kernel

public class Kernel
extends java.lang.Object

The kernel.


Constructor Summary
Kernel()
           
 
Method Summary
 void addListener(KernelEventListener listener)
           
 State create(ServiceID id)
           
 State destroy(ServiceID id)
           
 Service getService(ServiceID id)
           
 State getState(ServiceID id)
           
 void register(ServiceID id, Service service)
           
 void register(ServiceID id, Service service, ServiceID[] depends)
           
 void register(ServiceID id, Service service, java.util.Set depends)
           
 void removeListener(KernelEventListener listener)
           
 State start(ServiceID id)
           
 State stop(ServiceID id)
           
 void unregister(ServiceID id)
          1 fire event 2 break relationship 3
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Kernel

public Kernel()
Method Detail

addListener

public void addListener(KernelEventListener listener)

removeListener

public void removeListener(KernelEventListener listener)

getState

public State getState(ServiceID id)

getService

public Service getService(ServiceID id)

register

public void register(ServiceID id,
                     Service service)
              throws java.lang.IllegalArgumentException,
                     ServiceAlreadyRegisteredException,
                     ServiceRegistrationException
Throws:
java.lang.IllegalArgumentException
ServiceAlreadyRegisteredException
ServiceRegistrationException

register

public void register(ServiceID id,
                     Service service,
                     ServiceID[] depends)
              throws java.lang.IllegalArgumentException,
                     ServiceAlreadyRegisteredException,
                     ServiceRegistrationException
Throws:
java.lang.IllegalArgumentException
ServiceAlreadyRegisteredException
ServiceRegistrationException

register

public void register(ServiceID id,
                     Service service,
                     java.util.Set depends)
              throws java.lang.IllegalArgumentException,
                     ServiceAlreadyRegisteredException,
                     ServiceRegistrationException
Throws:
java.lang.IllegalArgumentException
ServiceAlreadyRegisteredException
ServiceRegistrationException

unregister

public void unregister(ServiceID id)
                throws java.lang.IllegalArgumentException,
                       UnknownServiceException,
                       ServiceUnregistrationException,
                       TransitionNotPossibleException
1 fire event 2 break relationship 3

Throws:
java.lang.IllegalArgumentException
UnknownServiceException
ServiceUnregistrationException
TransitionNotPossibleException

create

public State create(ServiceID id)
             throws UnknownServiceException,
                    ServiceFailureException
Throws:
UnknownServiceException
ServiceFailureException

start

public State start(ServiceID id)
            throws UnknownServiceException,
                   ServiceFailureException
Throws:
UnknownServiceException
ServiceFailureException

stop

public State stop(ServiceID id)
           throws UnknownServiceException,
                  ServiceFailureException
Throws:
UnknownServiceException
ServiceFailureException

destroy

public State destroy(ServiceID id)
              throws UnknownServiceException,
                     ServiceFailureException
Throws:
UnknownServiceException
ServiceFailureException