com.sun.ejb.containers
Class EJBLocalObjectInvocationHandler

java.lang.Object
  extended by com.sun.ejb.containers.EJBLocalRemoteObject
      extended by com.sun.ejb.containers.EJBLocalObjectImpl
          extended by com.sun.ejb.containers.EJBLocalObjectInvocationHandler
All Implemented Interfaces:
IndirectlySerializable, java.lang.reflect.InvocationHandler, EJBLocalObject

public final class EJBLocalObjectInvocationHandler
extends EJBLocalObjectImpl
implements java.lang.reflect.InvocationHandler

Handler for EJBLocalObject invocations through EJBLocalObject proxy.

Author:
Kenneth Saks

Field Summary
 
Fields inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
container, debug, primaryKey
 
Constructor Summary
EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap, boolean optionalLocalBusinessView)
          Constructor used for Local Business view.
EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap, java.lang.Class localIntf)
          Constructor used for Local Home view
 
Method Summary
 java.lang.Object getClientObject()
          Get the client object corresponding to an EJBLocalObjectImpl.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          This entry point is only used for Local Home view.
 void setProxy(java.lang.Object proxy)
           
 
Methods inherited from class com.sun.ejb.containers.EJBLocalObjectImpl
getEJBLocalHome, getPrimaryKey, getSerializableObjectFactory, isIdentical, remove
 
Methods inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
getContainer, getSfsbClientVersion, setSfsbClientVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBLocalObjectInvocationHandler

public EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap,
                                       java.lang.Class localIntf)
                                throws java.lang.Exception
Constructor used for Local Home view

Throws:
java.lang.Exception

EJBLocalObjectInvocationHandler

public EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap,
                                       boolean optionalLocalBusinessView)
                                throws java.lang.Exception
Constructor used for Local Business view.

Throws:
java.lang.Exception
Method Detail

setProxy

public void setProxy(java.lang.Object proxy)

getClientObject

public java.lang.Object getClientObject()
Description copied from class: EJBLocalObjectImpl
Get the client object corresponding to an EJBLocalObjectImpl. Users of this class cannot assume they can cast an EJBLocalObjectImpl to the object that the client uses, and vice-versa. This is overridden in the InvocationHandler. Only applicable for local home view.

Overrides:
getClientObject in class EJBLocalObjectImpl

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
This entry point is only used for Local Home view.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2012 GlassFish Community. All Rights Reserved.