public static final class Factory.ParticipantObserverManager extends Object
ParticipantObserver
instances.Constructor and Description |
---|
Factory.ParticipantObserverManager() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(ParticipantObserver observer)
Adds an observer to be notified on participant changes.
|
void |
notifyParticipantCreated(Participant participant,
ParticipantCreateArgs<?> args)
Notifies registered
ParticipantObserver instances that a new
Participant has been created. |
void |
notifyParticipantDestroyed(Participant participant)
Notifies registered
ParticipantObserver instances that a
Participant is about to be destroyed. |
void |
removeObserver(ParticipantObserver observer)
Removes an observer in case it existed.
|
public void notifyParticipantCreated(Participant participant, ParticipantCreateArgs<?> args)
ParticipantObserver
instances that a new
Participant
has been created.participant
- the new participantargs
- the arguments used to create this participantpublic void notifyParticipantDestroyed(Participant participant)
ParticipantObserver
instances that a
Participant
is about to be destroyed.participant
- the participant to be destroyedpublic void addObserver(ParticipantObserver observer)
observer
- the observer to add, not null
public void removeObserver(ParticipantObserver observer)
observer
- the observer to removeCopyright © 2018 CoR-Lab. All rights reserved.