org.jbpm.jobexecutor
Class JobExceptionHandler

java.lang.Object
  extended by org.jbpm.jobexecutor.JobExceptionHandler
All Implemented Interfaces:
java.io.Serializable, Command<java.lang.Object>, Listener

public class JobExceptionHandler
extends java.lang.Object
implements Listener, Command<java.lang.Object>

Author:
Tom Baeyens
See Also:
Serialized Form

Constructor Summary
JobExceptionHandler(long jobDbid, java.lang.Throwable exception, CommandService commandService)
           
 
Method Summary
 void event(java.lang.Object source, java.lang.String eventName, java.lang.Object info)
          Method called by the Observable when an event is fired.
 java.lang.Object execute(Environment environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobExceptionHandler

public JobExceptionHandler(long jobDbid,
                           java.lang.Throwable exception,
                           CommandService commandService)
Method Detail

event

public void event(java.lang.Object source,
                  java.lang.String eventName,
                  java.lang.Object info)
Description copied from interface: Listener
Method called by the Observable when an event is fired.

Specified by:
event in interface Listener
Parameters:
source - Observable that fired the event.
eventName - name of the event.
info - informations about the fired event.

execute

public java.lang.Object execute(Environment environment)
                         throws java.lang.Exception
Specified by:
execute in interface Command<java.lang.Object>
Throws:
java.lang.Exception