public class EventListenerDescriptor extends Object
Constructor and Description |
---|
EventListenerDescriptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptBundle(EventBundle bundle)
Checks if there's at least one event of interest in the bundle.
|
boolean |
acceptEvent(String eventName) |
EventListener |
asEventListener() |
PostCommitEventListener |
asPostCommitListener() |
EventBundle |
filterBundle(EventBundle bundle)
Filters the event bundle to only keep events of interest to this
listener.
|
Set<String> |
getEvents() |
boolean |
getIsAsync() |
String |
getName() |
int |
getPriority() |
RuntimeContext |
getRuntimeContext() |
Script |
getScript() |
Integer |
getTransactionTimeout() |
void |
initListener() |
boolean |
isEnabled() |
boolean |
isSingleThreaded() |
void |
merge(EventListenerDescriptor other) |
void |
setEnabled(boolean isEnabled) |
void |
setEvents(Set<String> events) |
void |
setIsAsync(Boolean isAsync) |
void |
setRuntimeContext(RuntimeContext rc) |
public static final Log log
public int getPriority()
public void setRuntimeContext(RuntimeContext rc)
public RuntimeContext getRuntimeContext()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
public EventListener asEventListener()
public PostCommitEventListener asPostCommitListener()
public String getName()
public Integer getTransactionTimeout()
public void merge(EventListenerDescriptor other)
public final boolean acceptEvent(String eventName)
public void setIsAsync(Boolean isAsync)
public boolean getIsAsync()
public boolean isSingleThreaded()
public EventBundle filterBundle(EventBundle bundle)
public boolean acceptBundle(EventBundle bundle)
Copyright © 2013 Nuxeo SA. All Rights Reserved.