org.apache.openejb.client
Class EJBObjectHandler

java.lang.Object
  extended by org.apache.openejb.client.EJBInvocationHandler
      extended by org.apache.openejb.client.EJBObjectHandler
All Implemented Interfaces:
Serializable, InvocationHandler
Direct Known Subclasses:
EntityEJBObjectHandler, StatefulEJBObjectHandler, StatelessEJBObjectHandler

public abstract class EJBObjectHandler
extends EJBInvocationHandler

See Also:
Serialized Form

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

Field Detail

GETEJBHOME

protected static final Method GETEJBHOME

GETHANDLE

protected static final Method GETHANDLE

GETPRIMARYKEY

protected static final Method GETPRIMARYKEY

ISIDENTICAL

protected static final Method ISIDENTICAL

REMOVE

protected static final Method REMOVE

GETHANDLER

protected static final Method GETHANDLER

registryId

public Object registryId
Constructor Detail

EJBObjectHandler

public EJBObjectHandler()

EJBObjectHandler

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

EJBObjectHandler

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

setEJBHomeProxy

protected void setEJBHomeProxy(EJBHomeProxy ejbHome)

createEJBObjectHandler

public static EJBObjectHandler createEJBObjectHandler(EJBMetaDataImpl ejb,
                                                      ServerMetaData server,
                                                      ClientMetaData client,
                                                      Object primaryKey)

getRegistryId

public abstract Object getRegistryId()

createEJBObjectProxy

public EJBObjectProxy createEJBObjectProxy()

_invoke

public Object _invoke(Object p,
                      Method m,
                      Object[] a)
               throws Throwable
Specified by:
_invoke in class EJBInvocationHandler
Throws:
Throwable

getEJBHome

protected Object getEJBHome(Method method,
                            Object[] args,
                            Object proxy)
                     throws Throwable
Throws:
Throwable

getHandle

protected Object getHandle(Method method,
                           Object[] args,
                           Object proxy)
                    throws Throwable
Throws:
Throwable

getPrimaryKey

protected abstract Object getPrimaryKey(Method method,
                                        Object[] args,
                                        Object proxy)
                                 throws Throwable
Throws:
Throwable

isIdentical

protected abstract Object isIdentical(Method method,
                                      Object[] args,
                                      Object proxy)
                               throws Throwable
Throws:
Throwable

equals

protected abstract Object equals(Method method,
                                 Object[] args,
                                 Object proxy)
                          throws Throwable
Throws:
Throwable

remove

protected abstract Object remove(Method method,
                                 Object[] args,
                                 Object proxy)
                          throws Throwable
Throws:
Throwable

businessMethod

protected Object businessMethod(Method method,
                                Object[] args,
                                Object proxy)
                         throws Throwable
Throws:
Throwable


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