Package org.jboss.ejb.client
Class EJBHandle<T extends EJBObject>
java.lang.Object
org.jboss.ejb.client.EJBHandle<T>
- Type Parameters:
T- the Enterprise Beans remote interface type
- All Implemented Interfaces:
Handle,Serializable
A handle for an Enterprise Bean interface.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(EJBLocator<T> locator) Construct a new instance.booleanDetermine whether this object is equal to another.booleanDetermine whether this object is equal to another.Obtain the enterprise bean object reference represented by this handle.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
Obtain the enterprise bean object reference represented by this handle.- Specified by:
getEJBObjectin interfaceHandle- Returns:
- the enterprise bean object reference represented by this handle.
- Throws:
RemoteException- The enterprise bean object could not be obtained because of a system-level failure.
-
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
-