Package org.jboss.wsf.spi.invocation
Class InvocationHandler
- java.lang.Object
-
- org.jboss.wsf.spi.invocation.InvocationHandler
-
public abstract class InvocationHandler extends Object
Handles invocations on endpoints.- Since:
- 25-Apr-2007
- Author:
- Thomas.Diesler@jboss.org, Heiko.Braun@jboss.com
-
-
Constructor Summary
Constructors Constructor Description InvocationHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract InvocationcreateInvocation()Create a container specific invocationprotected voidhandleInvocationException(Throwable th)abstract voidinit(Endpoint ep)Initilize the invocation handlerabstract voidinvoke(Endpoint ep, Invocation inv)Invoke the the service endpointabstract voidonAfterInvocation(Invocation invocation)Template method for notifying subclasses that endpoint method invocation was completed.abstract voidonBeforeInvocation(Invocation invocation)Template method for notifying subclasses that endpoint method is going to be invoked.abstract voidonEndpointInstantiated(Endpoint endpoint, Invocation invocation)Template method for notifying subclasses that endpoint instance have been instantiated.
-
-
-
Method Detail
-
createInvocation
public abstract Invocation createInvocation()
Create a container specific invocation- Returns:
- invocation
-
invoke
public abstract void invoke(Endpoint ep, Invocation inv) throws Exception
Invoke the the service endpoint- Parameters:
ep- endpointinv- invocation- Throws:
Exception- exception
-
init
public abstract void init(Endpoint ep)
Initilize the invocation handler- Parameters:
ep- endpoint
-
handleInvocationException
protected void handleInvocationException(Throwable th) throws Exception
- Throws:
Exception
-
onEndpointInstantiated
public abstract void onEndpointInstantiated(Endpoint endpoint, Invocation invocation) throws Exception
Template method for notifying subclasses that endpoint instance have been instantiated.- Parameters:
endpoint- instantiated endpointinvocation- current invocation- Throws:
Exception- subclasses have to throw exception on any failure
-
onBeforeInvocation
public abstract void onBeforeInvocation(Invocation invocation) throws Exception
Template method for notifying subclasses that endpoint method is going to be invoked.- Parameters:
invocation- current invocation- Throws:
Exception- subclasses have to throw exception on any failure
-
onAfterInvocation
public abstract void onAfterInvocation(Invocation invocation) throws Exception
Template method for notifying subclasses that endpoint method invocation was completed.- Parameters:
invocation- current invocation- Throws:
Exception- subclasses have to throw exception on any failure
-
-