org.ow2.bonita.facade.runtime
Interface HookInst


public interface HookInst

Author:
Pierre Vigneras

Method Summary
 java.lang.Exception getExceptionThrown()
          Get the recorded exception thrown by the hook.
 java.util.Date getFinishedTime()
          Returns the date recorded when the hook is finished.
 java.util.Date getStartedTime()
          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

getStartedTime

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

Returns:
The date recorded when the hook is started.

getFinishedTime

java.util.Date getFinishedTime()
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.