public class RemoteNamingStoreEJBClientHandler extends Object implements EJBClientHandler
EJBClientHandler
which has hard dependency on the EJB client APIsModifier and Type | Method and Description |
---|---|
void |
associate(org.jboss.remoting3.Connection connection)
Associates the passed
connection with an appropriate EJBClientContext . |
boolean |
equals(Object obj) |
Object |
handleLookupReturnInstance(Object instance)
This method will be invoked by the remote naming lookup protocol after it has received back the object
from the server, during a
Context.lookup(String) or Context.lookup(javax.naming.Name)
operation. |
static RemoteNamingStoreEJBClientHandler |
setupEJBClientContext(List<RemoteContext.CloseTask> closeTasks) |
public static RemoteNamingStoreEJBClientHandler setupEJBClientContext(List<RemoteContext.CloseTask> closeTasks)
public void associate(org.jboss.remoting3.Connection connection)
EJBClientHandler
connection
with an appropriate EJBClientContext
.
The passed connection
is typically managed by the remote naming APIsassociate
in interface EJBClientHandler
connection
- The connection to be associated with the EJB client contextpublic Object handleLookupReturnInstance(Object instance)
EJBClientHandler
Context.lookup(String)
or Context.lookup(javax.naming.Name)
operation. This allows the EJBClientHandler
implementations to check if the returned object is an
EJB proxy
and if it is, then do any relevant processing
of that proxy before returning back the processed/updated proxy.
If the passed instance
is not an EJB proxy then the implementations of this EJBClientHandler
are expected to just return back the passed instance
.handleLookupReturnInstance
in interface EJBClientHandler
instance
- The object instance which was returned by the server after a remote naming lookupCopyright © 2018 JBoss by Red Hat. All rights reserved.