org.ow2.bonita.facade.runtime
Interface HookInstance

All Superinterfaces:
java.io.Serializable

public interface HookInstance
extends java.io.Serializable

Interface to get recorded (runtime) information on Hook in order to debug.

Author:
Pierre Vigneras

Method Summary
 java.lang.Exception getExceptionThrown()
          Get the recorded exception thrown by the hook.
 java.util.Date getFinishedDate()
          Returns the date recorded when the hook is finished.
 java.util.Date getStartedDate()
          Returns the date recorded when the hook is started.
 java.lang.String getToStringAfterStarted()
          Returns a string representation of the java hook recorded after the hook is executed.
 java.lang.String getToStringBeforeStarted()
          Returns a string representation of the java hook recorded before the hook is executed.
 

Method Detail

getStartedDate

java.util.Date getStartedDate()
Returns the date recorded when the hook is started.

Returns:
The date recorded when the hook is started.

getFinishedDate

java.util.Date getFinishedDate()
Returns the date recorded when the hook is finished.

Returns:
The date recorded when the hook is finished.

getExceptionThrown

java.lang.Exception getExceptionThrown()
Get the recorded exception thrown by the hook.

Returns:
The exception thrown by the hook.

getToStringBeforeStarted

java.lang.String getToStringBeforeStarted()
Returns a string representation of the java hook recorded before the hook is executed. For debugging purpose this method could be useful to implement.

Returns:
The string representation of the java hook before the hook is executed.

getToStringAfterStarted

java.lang.String getToStringAfterStarted()
Returns a string representation of the java hook recorded after the hook is executed. For debugging purpose this method could be useful to implement.

Returns:
The string representation of the java hook after the hook is executed.


Copyright © 2008 OW2 Consortium. All Rights Reserved.