com.artima.place
Interface ActivationClient


public interface ActivationClient

Interface implemented by an object that is notified when a link activation completes, either with success, failure, or as a result of being aborted. Only one of the methods in this interface will be invoked (only once) for each link activation.


Method Summary
 void activationAborted()
          Invoked when a Link activation fails because of being aborted.
 void activationFailed()
          Invoked when a Link activation fails for any reason except being aborted.
 void activationSucceeded(net.jini.core.lookup.ServiceItem item)
          Invoked when a Link activation succeeds.
 

Method Detail

activationSucceeded

public void activationSucceeded(net.jini.core.lookup.ServiceItem item)
Invoked when a Link activation succeeds. The client recieves the ServiceItem that resulted from the link activation as a parameter of this method.
Parameters:
item - the ServiceItem resulting from the successful link activation
Throws:
NullPointerException - if passed item is null

activationFailed

public void activationFailed()
Invoked when a Link activation fails for any reason except being aborted.

activationAborted

public void activationAborted()
Invoked when a Link activation fails because of being aborted. Because a client indicates they wish to abort an activation by invoking abort on the LinkActivation returned by the activate method, a client may request abort just as the activation succeeds or fails. So after a client invokes abort, this method will likely be invoked on the ActivationListener, but either of the other two methods in this interface may alternatively be invoked.