org.freehep.record.loop.event
Interface RecordListenerManager

All Known Subinterfaces:
ChainableRecordListener, SequentialRecordLoop
All Known Implementing Classes:
ChainableRecordListenerDecorator, SequentialRecordLoopImpl

public interface RecordListenerManager

This interface should be implemented by any class that can register single RecordListener objects.

Version:
$Id: RecordListenerManager.java 8584 2006-08-10 23:06:37Z duns $
Author:
patton

Method Summary
 void addRecordListener(RecordListener listener)
          Adds the specified RecordListener to this object.
 RecordListener getRecordListener()
          Returns this objects RecordListener if there is one.
 void removeRecordListener(RecordListener listener)
          Removes the specified listener from this object if it is this objects listener, otherwise it does nothing.
 

Method Detail

addRecordListener

void addRecordListener(RecordListener listener)
                       throws TooManyListenersException
Adds the specified RecordListener to this object.

Parameters:
listener - the RecordListener to add.
Throws:
TooManyListenersException - if a listener is already present.
See Also:
removeRecordListener(org.freehep.record.loop.event.RecordListener)

getRecordListener

RecordListener getRecordListener()
Returns this objects RecordListener if there is one.

Returns:
this objects RecordListener if there is one.

removeRecordListener

void removeRecordListener(RecordListener listener)
Removes the specified listener from this object if it is this objects listener, otherwise it does nothing. If removed, a finish event is sent to the listener if it has been configured so that is can clean up any resources it holds.

Parameters:
listener - the RecordListener to remove.
See Also:
addRecordListener(org.freehep.record.loop.event.RecordListener)


Copyright © 2000-2007 FreeHEP. All Rights Reserved.