org.nuxeo.ecm.core.event.impl
Class EventListenerDescriptor
java.lang.Object
org.nuxeo.ecm.core.event.impl.EventListenerDescriptor
public class EventListenerDescriptor
- extends Object
XObject descriptor to declare event listeners
- Author:
- Bogdan Stefanescu
log
public static final Log log
EventListenerDescriptor
public EventListenerDescriptor()
getPriority
public int getPriority()
setRuntimeContext
public void setRuntimeContext(RuntimeContext rc)
getRuntimeContext
public RuntimeContext getRuntimeContext()
isEnabled
public boolean isEnabled()
getEvents
public Set<String> getEvents()
setEvents
public void setEvents(Set<String> events)
setEnabled
public void setEnabled(boolean isEnabled)
initListener
public void initListener()
throws Exception
- Throws:
Exception
asEventListener
public EventListener asEventListener()
asPostCommitListener
public PostCommitEventListener asPostCommitListener()
getScript
public Script getScript()
throws Exception
- Throws:
Exception
getName
public String getName()
getTransactionTimeout
public Integer getTransactionTimeout()
merge
public void merge(EventListenerDescriptor other)
acceptEvent
public final boolean acceptEvent(String eventName)
setIsAsync
public void setIsAsync(Boolean isAsync)
getIsAsync
public boolean getIsAsync()
isSingleThreaded
public boolean isSingleThreaded()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.