public static class WorkspaceEventListenerRegistration.Registrar extends Object
Registrar for easing setup and de/registration of EventListener
.
Modifier and Type | Method and Description |
---|---|
WorkspaceEventListenerRegistration.Handle |
register()
Registers the
EventListener in the ObservationManager . |
WorkspaceEventListenerRegistration.Registrar |
withDelay(Long delay,
Long maxDelay) |
WorkspaceEventListenerRegistration.Registrar |
withEventTypesMask(int eventMasksType) |
WorkspaceEventListenerRegistration.Registrar |
withNodeTypes(String... nodeTypes) |
WorkspaceEventListenerRegistration.Registrar |
withSubNodes(boolean includeSubNodes) |
public WorkspaceEventListenerRegistration.Registrar withSubNodes(boolean includeSubNodes)
public WorkspaceEventListenerRegistration.Registrar withNodeTypes(String... nodeTypes)
public WorkspaceEventListenerRegistration.Registrar withEventTypesMask(int eventMasksType)
public WorkspaceEventListenerRegistration.Registrar withDelay(Long delay, Long maxDelay)
public WorkspaceEventListenerRegistration.Handle register() throws javax.jcr.RepositoryException
Registers the EventListener
in the ObservationManager
.
WorkspaceEventListenerRegistration.Handle
used for unregistering the EventListener
javax.jcr.RepositoryException
- if an error occurs during the registration in ObservationManager
or if ObservationManager
cannot be obtainedWorkspaceEventListenerRegistration.WorkspaceEventListenerRegistrationException
- if the related EventListener
is already registered in the same workspaceCopyright © 2003–2016 Magnolia International Ltd.. All rights reserved.