org.jboss.aspects.asynch
Class FutureInvocationHandler

java.lang.Object
  extended by org.jboss.aop.proxy.Proxy
      extended by org.jboss.aspects.asynch.FutureInvocationHandler
All Implemented Interfaces:
Serializable, InvocationHandler, org.jboss.aop.InstanceAdvised, org.jboss.aop.instrument.Untransformable, org.jboss.aop.proxy.MethodMapped

public class FutureInvocationHandler
extends org.jboss.aop.proxy.Proxy
implements InvocationHandler, org.jboss.aop.instrument.Untransformable, Serializable

An invocation handler for the Future interface using dynamic proxies. It is an alternative to having generated proxies for use with EJB 3, avoiding client relying on javassist in the EJB 3 client proxies

Version:
$Revision$
Author:
Kabir Khan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.aop.proxy.Proxy
guid, instanceAdvisor, interfaces, mixins
 
Constructor Summary
FutureInvocationHandler()
           
 
Method Summary
static Object createFutureProxy(org.jboss.util.id.GUID guid, ClassLoader loader, Class[] interfaces)
           
 Map getMethodMap()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 Object writeReplace()
          Override Proxy implementation so we get default behaviour.
 
Methods inherited from class org.jboss.aop.proxy.Proxy
_dynamicInvoke, _getInstanceAdvisor, _setInstanceAdvisor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureInvocationHandler

public FutureInvocationHandler()
Method Detail

createFutureProxy

public static Object createFutureProxy(org.jboss.util.id.GUID guid,
                                       ClassLoader loader,
                                       Class[] interfaces)
                                throws Exception
Throws:
Exception

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

writeReplace

public Object writeReplace()
                    throws ObjectStreamException
Override Proxy implementation so we get default behaviour. Reason is to avoid client dependencies on javassist in EJB 3 asynchronous proxies

Overrides:
writeReplace in class org.jboss.aop.proxy.Proxy
Throws:
ObjectStreamException

getMethodMap

public Map getMethodMap()
Specified by:
getMethodMap in interface org.jboss.aop.proxy.MethodMapped
Specified by:
getMethodMap in class org.jboss.aop.proxy.Proxy


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.