org.apache.directory.server.core.event
Interface EventService


public interface EventService

Interface used by the DirectoryService to manage subscriptions for DIT change notifications.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Method Summary
 void addListener(DirectoryListener listener)
          Registers a DirectoryListener for notification on any and all change events on the DIT.
 void addListener(DirectoryListener listener, NotificationCriteria criteria)
          Registers a DirectoryListener for notification on change events on the DIT matching some notification criteria.
 java.util.List<RegistrationEntry> getRegistrationEntries()
          Lists the listeners registered with this EventService.
 void removeListener(DirectoryListener listener)
          Removes the listener from this EventService preventing all events registered from being delivered to it.
 

Method Detail

addListener

void addListener(DirectoryListener listener)
Registers a DirectoryListener for notification on any and all change events on the DIT.

Parameters:
listener - the DirectoryListener to deliver notifications to

addListener

void addListener(DirectoryListener listener,
                 NotificationCriteria criteria)
                 throws java.lang.Exception
Registers a DirectoryListener for notification on change events on the DIT matching some notification criteria.

Parameters:
listener - the DirectoryListener to deliver notifications to
criteria - the parameterized criteria for delivering change events
Throws:
java.lang.Exception

removeListener

void removeListener(DirectoryListener listener)
Removes the listener from this EventService preventing all events registered from being delivered to it.

Parameters:
listener - the DirectoryListener to stop delivering notifications to

getRegistrationEntries

java.util.List<RegistrationEntry> getRegistrationEntries()
Lists the listeners registered with this EventService.



Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.