org.jacorb.notification
Class SubscriptionManager

java.lang.Object
  extended byorg.jacorb.notification.EventTypeSet
      extended byorg.jacorb.notification.SubscriptionManager
All Implemented Interfaces:
NotifySubscribeOperations

public class SubscriptionManager
extends EventTypeSet
implements NotifySubscribeOperations

Utility class that manages subscriptions of NotifySubscribers and broadcasting of subscription_change requests.

Version:
$Id: SubscriptionManager.java,v 1.10 2006/01/29 21:19:23 alphonse.bendt Exp $
Author:
Alphonse Bendt

Field Summary
static SubscriptionManager NULL_MANAGER
           
 
Fields inherited from class org.jacorb.notification.EventTypeSet
EMPTY_EVENT_TYPE
 
Constructor Summary
SubscriptionManager()
           
 
Method Summary
 void actionSetChanged(EventType[] added, EventType[] removed)
           
 void addListener(NotifySubscribeOperations listener)
           
 EventType[] obtain_subscription_types()
           
 void removeListener(NotifySubscribeOperations listener)
           
 void subscription_change(EventType[] added, EventType[] removed)
           
 
Methods inherited from class org.jacorb.notification.EventTypeSet
changeSet, getAllTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_MANAGER

public static final SubscriptionManager NULL_MANAGER
Constructor Detail

SubscriptionManager

public SubscriptionManager()
Method Detail

addListener

public void addListener(NotifySubscribeOperations listener)

removeListener

public void removeListener(NotifySubscribeOperations listener)

actionSetChanged

public void actionSetChanged(EventType[] added,
                             EventType[] removed)
Specified by:
actionSetChanged in class EventTypeSet

subscription_change

public void subscription_change(EventType[] added,
                                EventType[] removed)
                         throws InvalidEventType
Specified by:
subscription_change in interface NotifySubscribeOperations
Throws:
InvalidEventType

obtain_subscription_types

public EventType[] obtain_subscription_types()