org.ow2.orchestra.pvm.internal.model
Class ExceptionHandlerImpl
java.lang.Object
org.ow2.orchestra.pvm.internal.model.ExceptionHandlerImpl
- All Implemented Interfaces:
- java.io.Serializable
public class ExceptionHandlerImpl
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- Tom Baeyens, Guillaume Porcher
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dbid
protected long dbid
dbversion
protected int dbversion
exceptionClassName
protected java.lang.String exceptionClassName
isTransactional
protected boolean isTransactional
isRethrowMasked
protected boolean isRethrowMasked
eventListenerReferences
protected java.util.List<ObjectReference<EventListener>> eventListenerReferences
transitionName
protected java.lang.String transitionName
nodeName
protected java.lang.String nodeName
ExceptionHandlerImpl
public ExceptionHandlerImpl()
createEventListenerReference
public ObjectReference<EventListener> createEventListenerReference(EventListener eventListener)
createEventListenerReference
public ObjectReference<EventListener> createEventListenerReference(Descriptor descriptor)
createActivityReference
public ObjectReference<EventListener> createActivityReference(java.lang.String expression)
createEventListenerReference
public ObjectReference<EventListener> createEventListenerReference()
getEventListeners
public java.util.List<EventListener> getEventListeners()
matches
public boolean matches(java.lang.Exception exception)
matches
public boolean matches(java.lang.Class<?> exceptionClass)
handle
public void handle(ExecutionImpl execution,
java.lang.Exception exception,
ProcessElementImpl processElementImpl)
- Handles the exception. This method will execute compensating code
in the same TX or in another TX (depending on the value of
isTransactional field).
The compensating code is not in this method,
but in executeHandler(ExecutionImpl, Exception, ProcessElementImpl) method.
- Parameters:
execution - the execution which produced the exceptionexception - the exception to handleprocessElementImpl - the process element the exception handler was triggered from.
executeHandler
protected void executeHandler(ExecutionImpl execution,
java.lang.Exception exception,
ProcessElementImpl processElementImpl)
- Compensating code for the exception.
This method is called from
handle(ExecutionImpl, Exception, ProcessElementImpl)
or from ExceptionHandlerSynchronization and should not be called directly.
Extensions should overwrite this method.
- Parameters:
execution - the execution which produced the exceptionexception - the exception to handleprocessElementImpl - the process element the exception handler was triggered from.
rethrow
public static void rethrow(java.lang.Exception exception,
java.lang.String prefixMessage)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDbid
public long getDbid()
getExceptionClassName
public java.lang.String getExceptionClassName()
setExceptionClassName
public void setExceptionClassName(java.lang.String exceptionClassName)
isTransactional
public boolean isTransactional()
setTransactional
public void setTransactional(boolean isTransactional)
getTransitionName
public java.lang.String getTransitionName()
setTransitionName
public void setTransitionName(java.lang.String transitionName)
getNodeName
public java.lang.String getNodeName()
setNodeName
public void setNodeName(java.lang.String nodeName)
isRethrowMasked
public boolean isRethrowMasked()
setRethrowMasked
public void setRethrowMasked(boolean isRethrowMasked)
getEventListenerReferences
public java.util.List<ObjectReference<EventListener>> getEventListenerReferences()
setEventListenerReferences
public void setEventListenerReferences(java.util.List<ObjectReference<EventListener>> activityReferences)
Copyright © 2009 OW2 Consortium. All Rights Reserved.