public class EventListenerList extends Object
Modifier and Type | Field and 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 and Description |
---|
EventListenerList() |
protected final List<EventListenerDescriptor> inlineListenersDescriptors
protected final List<EventListenerDescriptor> syncPostCommitListenersDescriptors
protected final List<EventListenerDescriptor> asyncPostCommitListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledInlineListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledSyncPostCommitListenersDescriptors
protected volatile List<EventListenerDescriptor> enabledAsyncPostCommitListenersDescriptors
protected final Map<String,EventListenerDescriptor> descriptors
public EventListenerList()
protected void flushCache()
public void add(EventListenerDescriptor descriptor)
protected EventListenerDescriptor mergeDescriptor(EventListenerDescriptor descriptor)
public void removeDescriptor(EventListenerDescriptor descriptor)
public EventListenerDescriptor getDescriptor(String listenerName)
public List<EventListener> getInLineListeners()
public List<PostCommitEventListener> getSyncPostCommitListeners()
public List<PostCommitEventListener> getAsyncPostCommitListeners()
public List<EventListenerDescriptor> getInlineListenersDescriptors()
public List<EventListenerDescriptor> getSyncPostCommitListenersDescriptors()
public List<EventListenerDescriptor> getAsyncPostCommitListenersDescriptors()
public void recomputeEnabledListeners()
public List<EventListenerDescriptor> getEnabledInlineListenersDescriptors()
public List<EventListenerDescriptor> getEnabledSyncPostCommitListenersDescriptors()
public List<EventListenerDescriptor> getEnabledAsyncPostCommitListenersDescriptors()
public List<String> getListenerNames()
public boolean hasListener(String name)
Copyright © 2018 Nuxeo. All rights reserved.