class DefaultEventService extends java.lang.Object implements EventService
| Modifier and Type | Field and Description |
|---|---|
private DirectoryService |
directoryService
The DirectoryService instance
|
private FilterNormalizingVisitor |
filterNormalizer
A normalizer used for filters
|
private java.util.List<RegistrationEntry> |
registrations
The list of RegistrationEntries being registered
|
| Constructor and Description |
|---|
DefaultEventService(DirectoryService directoryService)
Create an instance of EventService
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private java.util.List<RegistrationEntry> registrations
private DirectoryService directoryService
private FilterNormalizingVisitor filterNormalizer
public DefaultEventService(DirectoryService directoryService)
directoryService - The associated DirectoryServiceregistrations - The list of Registrationspublic void addListener(DirectoryListener listener, NotificationCriteria criteria) throws java.lang.Exception
addListener in interface EventServicelistener - the DirectoryListener to deliver notifications tocriteria - the parameterized criteria for delivering change eventsjava.lang.Exceptionpublic void removeListener(DirectoryListener listener)
removeListener in interface EventServicelistener - the DirectoryListener to stop delivering notifications topublic java.util.List<RegistrationEntry> getRegistrationEntries()
getRegistrationEntries in interface EventService