|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.ftt.resources.core.ResourcePublisher
public class ResourcePublisher
The default implementation of the IResourcePublisher.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Constructor Summary | |
|---|---|
ResourcePublisher()
|
|
| Method Summary | |
|---|---|
List |
getSubscriptions()
Returns a list of all subscriptions attached to this resource publisher. |
void |
publish(IResourceSubscriptionEvent event)
Notifies all subscribers that an event pertaining to this publisher occurred. |
void |
subscribe(IResourceSubscription subscription)
Attaches a new subscription to this resource publisher. |
void |
unsubscribe(Object subscriber)
Detaches the subscription associated with the subscriber from this publisher. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COPY_RIGHT
| Constructor Detail |
|---|
public ResourcePublisher()
| Method Detail |
|---|
public void subscribe(IResourceSubscription subscription)
IResourcePublisher
subscribe in interface IResourcePublishersubscription - the subscription to be added for this resource
publisherpublic void unsubscribe(Object subscriber)
IResourcePublisher
unsubscribe in interface IResourcePublishersubscriber - the subscriber associated with the subscription
to be detached from this resource publisher.
If no subscription is associated with the specified
subscriber, do nothing.public void publish(IResourceSubscriptionEvent event)
IResourcePublisherIResourceSubscription,
IResourceSubscription.notifySubscriber(IResourceSubscriptionEvent)
method is called for each subscription.
publish in interface IResourcePublisherevent - the event to publish to all the subscriberspublic List getSubscriptions()
IResourcePublisher
getSubscriptions in interface IResourcePublisher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||