Package org.nuxeo.ecm.core.event.impl
Class EventListenerList
- java.lang.Object
-
- org.nuxeo.ecm.core.event.impl.EventListenerList
-
public class EventListenerList extends Object
Utility class used to manage event listeners descriptors.- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EventListenerDescriptor>
asyncPostCommitListenersDescriptors
protected Map<String,EventListenerDescriptor>
descriptors
protected List<EventListenerDescriptor>
enabledAsyncPostCommitListenersDescriptors
protected List<EventListenerDescriptor>
enabledInlineListenersDescriptors
protected List<EventListenerDescriptor>
enabledSyncPostCommitListenersDescriptors
protected List<EventListenerDescriptor>
inlineListenersDescriptors
protected List<EventListenerDescriptor>
syncPostCommitListenersDescriptors
-
Constructor Summary
Constructors Constructor Description EventListenerList()
-
Method Summary
-
-
-
Field Detail
-
inlineListenersDescriptors
protected final List<EventListenerDescriptor> inlineListenersDescriptors
-
syncPostCommitListenersDescriptors
protected final List<EventListenerDescriptor> syncPostCommitListenersDescriptors
-
asyncPostCommitListenersDescriptors
protected final List<EventListenerDescriptor> asyncPostCommitListenersDescriptors
-
enabledInlineListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledInlineListenersDescriptors
-
enabledSyncPostCommitListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledSyncPostCommitListenersDescriptors
-
enabledAsyncPostCommitListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledAsyncPostCommitListenersDescriptors
-
descriptors
protected final Map<String,EventListenerDescriptor> descriptors
-
-
Method Detail
-
flushCache
protected void flushCache()
-
add
public void add(EventListenerDescriptor descriptor)
-
mergeDescriptor
protected EventListenerDescriptor mergeDescriptor(EventListenerDescriptor descriptor)
-
removeDescriptor
public void removeDescriptor(EventListenerDescriptor descriptor)
-
getDescriptor
public EventListenerDescriptor getDescriptor(String listenerName)
-
getInLineListeners
public List<EventListener> getInLineListeners()
-
getSyncPostCommitListeners
public List<PostCommitEventListener> getSyncPostCommitListeners()
-
getAsyncPostCommitListeners
public List<PostCommitEventListener> getAsyncPostCommitListeners()
-
getInlineListenersDescriptors
public List<EventListenerDescriptor> getInlineListenersDescriptors()
-
getSyncPostCommitListenersDescriptors
public List<EventListenerDescriptor> getSyncPostCommitListenersDescriptors()
-
getAsyncPostCommitListenersDescriptors
public List<EventListenerDescriptor> getAsyncPostCommitListenersDescriptors()
-
recomputeEnabledListeners
public void recomputeEnabledListeners()
-
getEnabledInlineListenersDescriptors
public List<EventListenerDescriptor> getEnabledInlineListenersDescriptors()
-
getEnabledSyncPostCommitListenersDescriptors
public List<EventListenerDescriptor> getEnabledSyncPostCommitListenersDescriptors()
-
getEnabledAsyncPostCommitListenersDescriptors
public List<EventListenerDescriptor> getEnabledAsyncPostCommitListenersDescriptors()
-
hasListener
public boolean hasListener(String name)
-
-