org.jboss.portal.server.kernel
Class Kernel
java.lang.Object
org.jboss.portal.server.kernel.Kernel
public class Kernel
- extends java.lang.Object
The kernel.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Kernel
public Kernel()
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