org.idoox.webservice.server
Interface LifeCycleController


public interface LifeCycleController

called when service is registered/unregistered

Since:
1.0
Component:
Core

Method Summary
 void serviceRegistered(java.lang.Object service)
          Deprecated. When a service instance is registered with a WebServiceContext it then notifies the controller by calling this method.
 long serviceToBeDeregistered(java.lang.Object service)
          Deprecated. If a service is to be deregistered with the WebServiceContext, the controller is notified about that.
 

Method Detail

serviceRegistered

public void serviceRegistered(java.lang.Object service)
Deprecated. 
When a service instance is registered with a WebServiceContext it then notifies the controller by calling this method.

Parameters:
service - reference to the newly registered service

serviceToBeDeregistered

public long serviceToBeDeregistered(java.lang.Object service)
Deprecated. 
If a service is to be deregistered with the WebServiceContext, the controller is notified about that. The controller can decide to increase the service's TTL.

Parameters:
service - reference to the service that is to be deregistered
Returns:
number of seconds the TTL has to be increased by or zero if the life cycle service is allowed to deregister the service