public abstract class AbstractSubscribers extends Object implements Subscribers
Modifier and Type | Field and Description |
---|---|
protected List |
subscribers |
Constructor and Description |
---|
AbstractSubscribers() |
Modifier and Type | Method and Description |
---|---|
void |
add(Object subscriber) |
protected abstract void |
notifySubscriber(Object subscriber,
Object source,
Notification data) |
Notification |
notifySubscribers(Object source,
Notification notification) |
Notification |
notifySubscribers(Object source,
String type,
Object value) |
Notification |
notifySubscribers(Object source,
String type,
Object value1,
Object value2) |
Notification |
notifySubscribers(Object source,
String type,
Object value1,
Object value2,
Object value3) |
void |
remove(Object subscriber) |
void |
removeAll() |
protected List subscribers
public void add(Object subscriber)
add
in interface Subscribers
public void remove(Object subscriber)
remove
in interface Subscribers
public void removeAll()
removeAll
in interface Subscribers
public Notification notifySubscribers(Object source, String type, Object value)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(Object source, String type, Object value1, Object value2)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(Object source, String type, Object value1, Object value2, Object value3)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(Object source, Notification notification)
notifySubscribers
in interface Subscribers
protected abstract void notifySubscriber(Object subscriber, Object source, Notification data)