Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.event.impl
Class EventListenerDescriptor

java.lang.Object
  extended by org.nuxeo.ecm.core.event.impl.EventListenerDescriptor

public class EventListenerDescriptor
extends Object

XObject descriptor to declare event listeners

Author:
Bogdan Stefanescu

Field Summary
static Log log
           
 
Constructor Summary
EventListenerDescriptor()
           
 
Method Summary
 boolean acceptEvent(String eventName)
           
 EventListener asEventListener()
           
 PostCommitEventListener asPostCommitListener()
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Log log
Constructor Detail

EventListenerDescriptor

public EventListenerDescriptor()
Method Detail

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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.