Factory.ParticipantObserverManager¶
-
public static final class
ParticipantObserverManager¶ A utility class to manage registered
ParticipantObserverinstances.- Author
swrede, jwienke, jmoringe
Methods¶
addObserver¶
-
public void
addObserver(ParticipantObserver observer)¶ Adds an observer to be notified on participant changes.
- Parameters
observer – the observer to add, not
null
notifyParticipantCreated¶
-
public void
notifyParticipantCreated(Participant participant, ParticipantCreateArgs<?> args)¶ Notifies registered
ParticipantObserverinstances that a newParticipanthas been created.- Parameters
participant – the new participant
args – the arguments used to create this participant
notifyParticipantDestroyed¶
-
public void
notifyParticipantDestroyed(Participant participant)¶ Notifies registered
ParticipantObserverinstances that aParticipantis about to be destroyed.- Parameters
participant – the participant to be destroyed
removeObserver¶
-
public void
removeObserver(ParticipantObserver observer)¶ Removes an observer in case it existed. Otherwise it does nothing.
- Parameters
observer – the observer to remove