org.apache.webbeans.ejb.common.proxy
Class EjbBeanProxyHandler

java.lang.Object
  extended by org.apache.webbeans.ejb.common.proxy.EjbBeanProxyHandler
All Implemented Interfaces:
Externalizable, Serializable, javassist.util.proxy.MethodHandler

public class EjbBeanProxyHandler
extends Object
implements javassist.util.proxy.MethodHandler, Serializable, Externalizable

EJB beans proxy handler.

Version:
$Rev: 889852 $ $Date: 2009-12-12 01:11:53 +0200 (Sat, 12 Dec 2009) $
See Also:
Serialized Form

Constructor Summary
EjbBeanProxyHandler()
           
EjbBeanProxyHandler(BaseEjbBean<?> ejbBean, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Creates a new instance.
 
Method Summary
protected  javax.enterprise.context.spi.CreationalContext<Object> getContextualCreationalContext()
           
 Object invoke(Object proxyInstance, Method method, Method proceed, Object[] arguments)
          
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbBeanProxyHandler

public EjbBeanProxyHandler()

EjbBeanProxyHandler

public EjbBeanProxyHandler(BaseEjbBean<?> ejbBean,
                           javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Creates a new instance.

Parameters:
ejbBean - ejb bean instance
Method Detail

invoke

public Object invoke(Object proxyInstance,
                     Method method,
                     Method proceed,
                     Object[] arguments)
              throws Exception

Specified by:
invoke in interface javassist.util.proxy.MethodHandler
Throws:
Exception

getContextualCreationalContext

protected javax.enterprise.context.spi.CreationalContext<Object> getContextualCreationalContext()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.