Fabric3 JDK Proxy Extension

org.fabric3.implementation.proxy.jdk
Class AbstractCallbackInvocationHandler<T>

java.lang.Object
  extended by org.fabric3.implementation.proxy.jdk.AbstractCallbackInvocationHandler<T>
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
MultiThreadedCallbackInvocationHandler, StatefulCallbackInvocationHandler

public abstract class AbstractCallbackInvocationHandler<T>
extends Object
implements InvocationHandler

Abstract callback handler implementation. Concrete classes must implement a strategy for mapping the callback target chain for the invoked callback operation.

Version:
$Rev: 9763 $ $Date: 2011-01-03 00:48:06 +0000 (Mon, 03 Jan 2011) $

Constructor Summary
AbstractCallbackInvocationHandler(Class<T> interfaze)
          Constructor.
 
Method Summary
protected  Object handleProxyMethod(Method method)
           
protected  Object invoke(org.fabric3.spi.wire.InvocationChain chain, Object[] args, org.fabric3.spi.invocation.WorkContext workContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Constructor Detail

AbstractCallbackInvocationHandler

public AbstractCallbackInvocationHandler(Class<T> interfaze)
Constructor.

Parameters:
interfaze - the callback service interface implemented by the proxy
Method Detail

invoke

protected Object invoke(org.fabric3.spi.wire.InvocationChain chain,
                        Object[] args,
                        org.fabric3.spi.invocation.WorkContext workContext)
                 throws Throwable
Throws:
Throwable

handleProxyMethod

protected Object handleProxyMethod(Method method)
                            throws org.fabric3.spi.component.InstanceInvocationException
Throws:
org.fabric3.spi.component.InstanceInvocationException

Fabric3 JDK Proxy Extension

Copyright © 2007-2011 Metaform Systems.