org.jboss.portal.server.kernel
Class BaseService

java.lang.Object
  extended by org.jboss.portal.server.kernel.BaseService
All Implemented Interfaces:
Registration, Service
Direct Known Subclasses:
NullService, NullService, ServerObject

public class BaseService
extends java.lang.Object
implements Service, Registration


Field Summary
protected  Context ctx
           
 
Constructor Summary
BaseService()
           
 
Method Summary
 void addDependsOnMe(ServiceImplementation implementation)
          Add a service depending on this one.
 void addIDependOn(ServiceImplementation implementation)
          Add a service it depends on.
 void create()
          Create.
 void destroy()
          Destroy.
 void registered(Context ctx)
          Callback for registration.
 void removeDependsOnMe(ServiceImplementation implementation)
          Remove a service depending on this one.
 void removeIDependOn(ServiceImplementation implementation)
          Remove a service it depends on.
 void start()
          Start.
 void stop()
          Stop.
 void unregister()
          Callback for unregistration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

protected Context ctx
Constructor Detail

BaseService

public BaseService()
Method Detail

addIDependOn

public void addIDependOn(ServiceImplementation implementation)
Description copied from interface: Registration
Add a service it depends on.

Specified by:
addIDependOn in interface Registration

removeIDependOn

public void removeIDependOn(ServiceImplementation implementation)
Description copied from interface: Registration
Remove a service it depends on.

Specified by:
removeIDependOn in interface Registration

addDependsOnMe

public void addDependsOnMe(ServiceImplementation implementation)
Description copied from interface: Registration
Add a service depending on this one.

Specified by:
addDependsOnMe in interface Registration

removeDependsOnMe

public void removeDependsOnMe(ServiceImplementation implementation)
Description copied from interface: Registration
Remove a service depending on this one.

Specified by:
removeDependsOnMe in interface Registration

registered

public void registered(Context ctx)
Description copied from interface: Registration
Callback for registration.

Specified by:
registered in interface Registration

unregister

public void unregister()
Description copied from interface: Registration
Callback for unregistration.

Specified by:
unregister in interface Registration

create

public void create()
            throws java.lang.Exception
Description copied from interface: Service
Create.

Specified by:
create in interface Service
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Description copied from interface: Service
Start.

Specified by:
start in interface Service
Throws:
java.lang.Exception

stop

public void stop()
Description copied from interface: Service
Stop.

Specified by:
stop in interface Service

destroy

public void destroy()
Description copied from interface: Service
Destroy.

Specified by:
destroy in interface Service