Package org.jboss.ejb.client
Class EJBHandle<T extends jakarta.ejb.EJBObject>
java.lang.Object
org.jboss.ejb.client.EJBHandle<T>
- Type Parameters:
T- the Enterprise Beans remote interface type
- All Implemented Interfaces:
jakarta.ejb.Handle,Serializable
public final class EJBHandle<T extends jakarta.ejb.EJBObject>
extends Object
implements jakarta.ejb.Handle
A handle for an Enterprise Bean interface.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends jakarta.ejb.EJBObject>
EJBHandle<T>create(EJBLocator<T> locator) Construct a new instance.booleanDetermine whether this object is equal to another.booleanDetermine whether this object is equal to another.Get the locator for this handle.inthashCode()Get the hash code for this Enterprise Bean handle.
-
Constructor Details
-
EJBHandle
Construct a new instance.- Parameters:
locator- the locator for the EJB instance
-
-
Method Details
-
create
Construct a new instance.- Type Parameters:
T- the Enterprise Beans object type- Parameters:
locator- the locator for the Enterprise Beans instance (must not benull)- Returns:
- the handle (not
null)
-
getEJBObject
- Specified by:
getEJBObjectin interfacejakarta.ejb.Handle- Throws:
RemoteException
-
equals
Determine whether this object is equal to another. -
equals
Determine whether this object is equal to another.- Parameters:
other- the other object- Returns:
trueif they are equal,falseotherwise
-
hashCode
public int hashCode()Get the hash code for this Enterprise Bean handle. -
getLocator
Get the locator for this handle.- Returns:
- the locator for this handle
-