org.apache.openejb.client
Class EJBObjectHandler
java.lang.Object
org.apache.openejb.client.EJBInvocationHandler
org.apache.openejb.client.EJBObjectHandler
- All Implemented Interfaces:
- Serializable, InvocationHandler
- Direct Known Subclasses:
- EntityEJBObjectHandler, SingletonEJBObjectHandler, StatefulEJBObjectHandler, StatelessEJBObjectHandler
public abstract class EJBObjectHandler
- extends EJBInvocationHandler
- See Also:
- Serialized Form
| Fields inherited from class org.apache.openejb.client.EJBInvocationHandler |
authenticationInfo, client, ejb, EQUALS, HASHCODE, inProxyMap, isInvalidReference, liveHandleRegistry, primaryKey, remote, request, server, TOSTRING |
|
Method Summary |
Object |
_invoke(Object p,
Method m,
Object[] a)
|
protected Object |
businessMethod(Method method,
Object[] args,
Object proxy)
|
static EJBObjectHandler |
createEJBObjectHandler(ThreadPoolExecutor executorService,
EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
Object primaryKey,
JNDIContext.AuthenticationInfo auth)
|
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, request |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CANCEL
protected static final Method CANCEL
registryId
public Object registryId
executor
protected ThreadPoolExecutor executor
EJBObjectHandler
public EJBObjectHandler()
EJBObjectHandler
public EJBObjectHandler(ThreadPoolExecutor es,
EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
JNDIContext.AuthenticationInfo auth)
EJBObjectHandler
public EJBObjectHandler(ThreadPoolExecutor es,
EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
Object primaryKey,
JNDIContext.AuthenticationInfo auth)
setEJBHomeProxy
protected void setEJBHomeProxy(EJBHomeProxy ejbHome)
createEJBObjectHandler
public static EJBObjectHandler createEJBObjectHandler(ThreadPoolExecutor executorService,
EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
Object primaryKey,
JNDIContext.AuthenticationInfo auth)
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–2015 The Apache Software Foundation. All rights reserved.