org.jboss.wsf.spi.invocation
Class InvocationHandler

java.lang.Object
  extended by 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
InvocationHandler()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationHandler

public InvocationHandler()
Method Detail

createInvocation

public abstract Invocation createInvocation()
Create a container specific invocation


invoke

public abstract void invoke(Endpoint ep,
                            Invocation inv)
                     throws Exception
Invoke the the service endpoint

Throws:
Exception

init

public abstract void init(Endpoint ep)
Initilize the invocation handler


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 © 2012 JBoss, by Red Hat. All Rights Reserved.