Factory.ParticipantObserverManager¶
-
public static final class
ParticipantObserverManager
¶ A utility class to manage registered
ParticipantObserver
instances.- 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
ParticipantObserver
instances that a newParticipant
has been created.- Parameters
participant – the new participant
args – the arguments used to create this participant
notifyParticipantDestroyed¶
-
public void
notifyParticipantDestroyed
(Participant participant)¶ Notifies registered
ParticipantObserver
instances that aParticipant
is 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