org.apache.openejb.client
Class SingletonEJBObjectHandler

java.lang.Object
  extended by org.apache.openejb.client.EJBInvocationHandler
      extended by org.apache.openejb.client.EJBObjectHandler
          extended by org.apache.openejb.client.SingletonEJBObjectHandler
All Implemented Interfaces:
Serializable, InvocationHandler

public class SingletonEJBObjectHandler
extends EJBObjectHandler

See Also:
Serialized Form

Field Summary
 Object registryId
           
 
Fields inherited from class org.apache.openejb.client.EJBObjectHandler
GETEJBHOME, GETHANDLE, GETHANDLER, GETPRIMARYKEY, ISIDENTICAL, REMOVE
 
Fields inherited from class org.apache.openejb.client.EJBInvocationHandler
client, ejb, EQUALS, HASHCODE, inProxyMap, isInvalidReference, liveHandleRegistry, primaryKey, remote, request, server, TOSTRING
 
Constructor Summary
SingletonEJBObjectHandler()
           
SingletonEJBObjectHandler(EJBMetaDataImpl ejb, ServerMetaData server, ClientMetaData client)
           
SingletonEJBObjectHandler(EJBMetaDataImpl ejb, ServerMetaData server, ClientMetaData client, Object primaryKey)
           
 
Method Summary
static Object createRegistryId(Object primKey, Object deployId, String containerID)
           
protected  Object equals(Method method, Object[] args, Object proxy)
           
protected  Object getPrimaryKey(Method method, Object[] args, Object proxy)
           
 Object getRegistryId()
           
protected  void invalidateReference()
           
protected  Object isIdentical(Method method, Object[] args, Object proxy)
           
protected  Object remove(Method method, Object[] args, Object proxy)
           
 
Methods inherited from class org.apache.openejb.client.EJBObjectHandler
_invoke, businessMethod, createEJBObjectHandler, createEJBObjectProxy, getEJBHome, getHandle, setEJBHomeProxy
 
Methods inherited from class org.apache.openejb.client.EJBInvocationHandler
convertException, getCause, getClient, getClientIdentity, getEjb, getMethod, getPrimaryKey, getServer, invalidateAllHandlers, invoke, registerHandler, request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registryId

public Object registryId
Constructor Detail

SingletonEJBObjectHandler

public SingletonEJBObjectHandler()

SingletonEJBObjectHandler

public SingletonEJBObjectHandler(EJBMetaDataImpl ejb,
                                 ServerMetaData server,
                                 ClientMetaData client)

SingletonEJBObjectHandler

public SingletonEJBObjectHandler(EJBMetaDataImpl ejb,
                                 ServerMetaData server,
                                 ClientMetaData client,
                                 Object primaryKey)
Method Detail

createRegistryId

public static Object createRegistryId(Object primKey,
                                      Object deployId,
                                      String containerID)

getRegistryId

public Object getRegistryId()
Specified by:
getRegistryId in class EJBObjectHandler

getPrimaryKey

protected Object getPrimaryKey(Method method,
                               Object[] args,
                               Object proxy)
                        throws Throwable
Specified by:
getPrimaryKey in class EJBObjectHandler
Throws:
Throwable

isIdentical

protected Object isIdentical(Method method,
                             Object[] args,
                             Object proxy)
                      throws Throwable
Specified by:
isIdentical in class EJBObjectHandler
Throws:
Throwable

equals

protected Object equals(Method method,
                        Object[] args,
                        Object proxy)
                 throws Throwable
Specified by:
equals in class EJBObjectHandler
Throws:
Throwable

invalidateReference

protected void invalidateReference()
Overrides:
invalidateReference in class EJBInvocationHandler

remove

protected Object remove(Method method,
                        Object[] args,
                        Object proxy)
                 throws Throwable
Specified by:
remove in class EJBObjectHandler
Throws:
Throwable


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.