com.artima.place
Interface ProgressEventGenerator


public interface ProgressEventGenerator

Interface optionally implemented by the object returned by the activate method of a Link to allow the client to receive progress updates during the course of the activation. The object returned by activate need not implement this interface.


Method Summary
 void addProgressListener(ProgressListener listener)
          Adds the specified ProgressListener to receive progress events from this object.
 void removeProgressListener(ProgressListener listener)
          Removes the specified ProgressListener so that it no longer receives progress events from this object.
 

Method Detail

addProgressListener

public void addProgressListener(ProgressListener listener)
Adds the specified ProgressListener to receive progress events from this object. If pl is null, no exception is thrown and no action is performed.
Parameters:
listener - the LinkMapListener to add
Throws:
NullPointerException - if passed listener is null

removeProgressListener

public void removeProgressListener(ProgressListener listener)
Removes the specified ProgressListener so that it no longer receives progress events from this object. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this object. If pl is null, no exception is thrown and no action is performed.
Parameters:
listener - the LinkMapListener to remove
Throws:
NullPointerException - if passed listener is null