Package org.nuxeo.ecm.core.event.impl
Class EventListenerDescriptor
java.lang.Object
org.nuxeo.ecm.core.event.impl.EventListenerDescriptor
XObject descriptor to declare event listeners
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The event listener class.protected EventListener
protected Boolean
Applies only for post commit listenerprotected boolean
protected boolean
Applies only for scripts.protected String
protected PostCommitEventListener
protected Integer
The priority to be used to order listeners.protected RuntimeContext
protected Integer
protected String
A script reference: URL, file path, or bundle entry.protected boolean
protected Integer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptBundle
(EventBundle bundle) Checks if there's at least one event of interest in the bundle.final boolean
acceptEvent
(String eventName) filterBundle
(EventBundle bundle) Filters the event bundle to only keep events of interest to this listener.boolean
getName()
int
void
boolean
boolean
void
merge
(EventListenerDescriptor other) void
setEnabled
(boolean isEnabled) void
void
setIsAsync
(Boolean isAsync) void
setRetryCount
(Integer retryCount) void
toString()
-
Field Details
-
name
-
className
The event listener class. -
script
A script reference: URL, file path, or bundle entry. Runtime variable are expanded. To specify a bundle entry use the URL schema "bundle:" -
isPostCommit
protected boolean isPostCommitApplies only for scripts. -
isAsync
Applies only for post commit listener -
transactionTimeOut
-
priority
The priority to be used to order listeners. -
isEnabled
protected boolean isEnabled -
retryCount
-
singleThreaded
protected boolean singleThreaded -
events
-
rc
-
inLineListener
-
postCommitEventListener
-
-
Constructor Details
-
EventListenerDescriptor
public EventListenerDescriptor()
-
-
Method Details
-
getPriority
public int getPriority() -
setRuntimeContext
-
getRuntimeContext
-
isEnabled
public boolean isEnabled() -
getRetryCount
-
getEvents
-
setEvents
-
setEnabled
public void setEnabled(boolean isEnabled) -
setRetryCount
-
initListener
public void initListener() -
asEventListener
-
asPostCommitListener
-
getScript
- Throws:
IOException
-
getName
-
getTransactionTimeout
-
merge
-
acceptEvent
-
setIsAsync
-
getIsAsync
public boolean getIsAsync() -
isSingleThreaded
public boolean isSingleThreaded() -
filterBundle
Filters the event bundle to only keep events of interest to this listener.- Since:
- 5.7
-
acceptBundle
Checks if there's at least one event of interest in the bundle.- Since:
- 5.7
-
toString
-