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:
- [email protected], [email protected]
-
Constructor Summary
Constructors Constructor and Description InvocationHandler()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract Invocation
createInvocation()
Create a container specific invocationprotected void
handleInvocationException(Throwable th)
abstract void
init(Endpoint ep)
Initilize the invocation handlerabstract void
invoke(Endpoint ep, Invocation inv)
Invoke the the service endpointabstract 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.
-
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
- endpoint -
inv
- 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 endpoint -
invocation
- 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
Copyright © 2020 JBoss, by Red Hat. All rights reserved.