public abstract static class Invoker.Invocation extends Object implements Runnable
Constructor and Description |
---|
Invocation() |
Modifier and Type | Method and Description |
---|---|
void |
_finally()
Things to do in all cases after the invocation.
|
void |
after()
Things to do after an Invocation.
|
void |
before()
Things to do before an Invocation
|
abstract void |
execute()
Override this method
|
abstract Invoker.InvocationContext |
getInvocationContext() |
boolean |
init()
Init the call (especially useful in DEV mode to detect changes)
|
void |
onException(Throwable e)
Things to do if the Invocation code thrown an exception
|
void |
onSuccess()
Things to do when the whole invocation has succeeded (before + execute + after)
|
protected void |
preInit()
Needs this method to do stuff *before* init() is executed.
|
void |
run()
It's time to execute.
|
void |
suspend(Invoker.Suspend suspendRequest)
The request is suspended
|
protected void preInit()
public boolean init()
public abstract Invoker.InvocationContext getInvocationContext()
public void before()
public void after()
public void onSuccess() throws Exception
Exception
public void onException(Throwable e)
public void suspend(Invoker.Suspend suspendRequest)
suspendRequest
- public void _finally()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly