public abstract class InvocationHandler extends Object
Constructor and Description |
---|
InvocationHandler() |
Modifier and Type | Method and Description |
---|---|
abstract Invocation |
createInvocation()
Create a container specific invocation
|
protected void |
handleInvocationException(Throwable th) |
abstract void |
init(Endpoint ep)
Initilize the invocation handler
|
abstract void |
invoke(Endpoint ep,
Invocation inv)
Invoke the the service endpoint
|
abstract void |
onAfterInvocation(Invocation invocation)
Template method for notifying subclasses that endpoint method invocation was completed.
|
abstract void |
onBeforeInvocation(Invocation invocation)
Template method for notifying subclasses that endpoint method is going to be invoked.
|
abstract void |
onEndpointInstantiated(Endpoint endpoint,
Invocation invocation)
Template method for notifying subclasses that endpoint instance have been instantiated.
|
public abstract Invocation createInvocation()
public abstract void invoke(Endpoint ep, Invocation inv) throws Exception
ep
- endpointinv
- invocationException
- exceptionpublic abstract void init(Endpoint ep)
ep
- endpointprotected void handleInvocationException(Throwable th) throws Exception
Exception
public abstract void onEndpointInstantiated(Endpoint endpoint, Invocation invocation) throws Exception
endpoint
- instantiated endpointinvocation
- current invocationException
- subclasses have to throw exception on any failurepublic abstract void onBeforeInvocation(Invocation invocation) throws Exception
invocation
- current invocationException
- subclasses have to throw exception on any failurepublic abstract void onAfterInvocation(Invocation invocation) throws Exception
invocation
- current invocationException
- subclasses have to throw exception on any failureCopyright © 2018 JBoss, by Red Hat. All rights reserved.