org.jbpm.pvm.impl
Class ExceptionHandlerImpl

java.lang.Object
  extended by org.jbpm.pvm.impl.ExceptionHandlerImpl
All Implemented Interfaces:
java.io.Serializable, ExceptionHandler

public class ExceptionHandlerImpl
extends java.lang.Object
implements java.io.Serializable, ExceptionHandler

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.util.List<ObjectReference<Activity>> activityReferences
           
protected  long dbid
           
protected  int dbversion
           
protected  java.lang.String exceptionClassName
           
protected  boolean isRethrowMasked
           
protected  boolean isTransactional
           
protected  java.lang.String nodeName
           
protected  java.lang.String transitionName
           
 
Constructor Summary
ExceptionHandlerImpl()
           
 
Method Summary
 ObjectReference<Activity> createActionReference()
           
 ObjectReference<Activity> createActivityReference(Activity activity)
           
 ObjectReference<Activity> createActivityReference(Descriptor descriptor)
           
 ObjectReference<Activity> createActivityReference(java.lang.String expression)
           
 java.util.List<Activity> getActivities()
           
 java.util.List<ObjectReference<Activity>> getActivityReferences()
           
 long getDbid()
          the meaningless database primary key
 java.lang.String getExceptionClassName()
           
 java.lang.String getNodeName()
           
 java.lang.String getTransitionName()
           
 void handle(ExecutionImpl execution, java.lang.Exception exception)
           
 boolean isRethrowMasked()
           
 boolean isTransactional()
           
 boolean matches(java.lang.Class<?> exceptionClass)
           
 boolean matches(java.lang.Exception exception)
           
static void rethrow(java.lang.Exception exception, java.lang.String prefixMessage)
           
 void setActivityReferences(java.util.List<ObjectReference<Activity>> activityReferences)
           
 void setExceptionClassName(java.lang.String exceptionClassName)
           
 void setNodeName(java.lang.String nodeName)
           
 void setRethrowMasked(boolean isRethrowMasked)
           
 void setTransactional(boolean isTransactional)
           
 void setTransitionName(java.lang.String transitionName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbid

protected long dbid

dbversion

protected int dbversion

exceptionClassName

protected java.lang.String exceptionClassName

isTransactional

protected boolean isTransactional

isRethrowMasked

protected boolean isRethrowMasked

activityReferences

protected java.util.List<ObjectReference<Activity>> activityReferences

transitionName

protected java.lang.String transitionName

nodeName

protected java.lang.String nodeName
Constructor Detail

ExceptionHandlerImpl

public ExceptionHandlerImpl()
Method Detail

createActivityReference

public ObjectReference<Activity> createActivityReference(Activity activity)

createActivityReference

public ObjectReference<Activity> createActivityReference(Descriptor descriptor)

createActivityReference

public ObjectReference<Activity> createActivityReference(java.lang.String expression)

createActionReference

public ObjectReference<Activity> createActionReference()

getActivities

public java.util.List<Activity> getActivities()

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)

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()
Description copied from interface: ExceptionHandler
the meaningless database primary key

Specified by:
getDbid in interface ExceptionHandler

getExceptionClassName

public java.lang.String getExceptionClassName()
Specified by:
getExceptionClassName in interface ExceptionHandler

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)

getActivityReferences

public java.util.List<ObjectReference<Activity>> getActivityReferences()

setActivityReferences

public void setActivityReferences(java.util.List<ObjectReference<Activity>> activityReferences)