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, InvocationHandler, javassist.util.proxy.MethodHandler

public class EjbBeanProxyHandler
extends Object
implements InvocationHandler, 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

Field Summary
protected  javax.enterprise.context.spi.CreationalContext<?> creationalContext
          Creational Context
protected  Object dependentEJB
          Dependent ejb instance
protected  BaseEjbBean<?> ejbBean
          Proxy ejb bean instance
protected  boolean isDependent
          Scope is dependent
protected static Logger logger
           
protected  WebBeansContext webBeansContext
           
 
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 instance, Method method, Method proceed, Object[] arguments)
           
 Object invoke(Object instance, Method method, 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
 

Field Detail

logger

protected static final Logger logger

ejbBean

protected BaseEjbBean<?> ejbBean
Proxy ejb bean instance


dependentEJB

protected Object dependentEJB
Dependent ejb instance


isDependent

protected boolean isDependent
Scope is dependent


creationalContext

protected javax.enterprise.context.spi.CreationalContext<?> creationalContext
Creational Context


webBeansContext

protected WebBeansContext webBeansContext
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 instance,
                     Method method,
                     Method proceed,
                     Object[] arguments)
              throws Throwable
Specified by:
invoke in interface javassist.util.proxy.MethodHandler
Throws:
Throwable

invoke

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

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-2012 The Apache Software Foundation. All Rights Reserved.