|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.event.AbstractEventDispatcher
public abstract class AbstractEventDispatcher
Parent class for event dispatchers that maintain their observers in a
java.util.List.
| Constructor Summary | |
|---|---|
AbstractEventDispatcher()
|
|
| Method Summary | |
|---|---|
void |
addObserver(SessionObserver observer)
Add an observer to this event dispatcher. |
boolean |
contains(SessionObserver observer)
|
protected SessionObserver[] |
getObserverList()
Get the list of observers as an array. |
Collection<SessionObserver> |
getObservers()
Get a read-only collection view of all the observers registered with this event dispatcher. |
Iterator<SessionObserver> |
observerIterator()
Get an iterator over the currently registered observers. |
void |
removeObserver(SessionObserver observer)
Remove an observer from this event dispatcher. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mobicents.protocols.smpp.event.EventDispatcher |
|---|
destroy, init, notifyObservers, notifyObservers |
| Constructor Detail |
|---|
public AbstractEventDispatcher()
| Method Detail |
|---|
public void addObserver(SessionObserver observer)
EventDispatcher
addObserver in interface EventDispatcherobserver - the observer object to add.public void removeObserver(SessionObserver observer)
EventDispatcher
removeObserver in interface EventDispatcherobserver - the observer object to remove from the registered observers.public Collection<SessionObserver> getObservers()
EventDispatcher
getObservers in interface EventDispatcherpublic Iterator<SessionObserver> observerIterator()
EventDispatcher
observerIterator in interface EventDispatcherpublic boolean contains(SessionObserver observer)
public int size()
protected SessionObserver[] getObserverList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||