Fabric3 JDK Proxy Extension

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

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

public class StatefulCallbackInvocationHandler<T>
extends AbstractCallbackInvocationHandler<T>

Responsible for dispatching to a callback service from a component implementation instance that is not composite scope. Since only one client can invoke the instance this proxy is injected on at a time, there can only be one callback target, even if the proxy is injected on an instance variable. Consequently, the proxy does not need to map the callback target based on the forward request.

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

Constructor Summary
StatefulCallbackInvocationHandler(Class<T> interfaze, Map<Method,org.fabric3.spi.wire.InvocationChain> chains)
          Constructor.
StatefulCallbackInvocationHandler(Class<T> interfaze, org.fabric3.spi.component.ScopeContainer scopeContainer, Map<Method,org.fabric3.spi.wire.InvocationChain> chains)
          Constructor.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.fabric3.implementation.proxy.jdk.AbstractCallbackInvocationHandler
handleProxyMethod, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulCallbackInvocationHandler

public StatefulCallbackInvocationHandler(Class<T> interfaze,
                                         Map<Method,org.fabric3.spi.wire.InvocationChain> chains)
Constructor.

Parameters:
interfaze - the callback service interface implemented by the proxy
chains - the invocation chain mappings for the callback wire

StatefulCallbackInvocationHandler

public StatefulCallbackInvocationHandler(Class<T> interfaze,
                                         org.fabric3.spi.component.ScopeContainer scopeContainer,
                                         Map<Method,org.fabric3.spi.wire.InvocationChain> chains)
Constructor.

Parameters:
interfaze - the callback service interface implemented by the proxy
scopeContainer - the conversational scope container
chains - the invocation chain mappings for the callback wire
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Throws:
Throwable

Fabric3 JDK Proxy Extension

Copyright © 2007-2011 Metaform Systems.