Package org.jboss.ejb.client
Class EJBHandle<T extends javax.ejb.EJBObject>
- java.lang.Object
-
- org.jboss.ejb.client.EJBHandle<T>
-
- Type Parameters:
T- the Enterprise Beans remote interface type
- All Implemented Interfaces:
Serializable,javax.ejb.Handle
public final class EJBHandle<T extends javax.ejb.EJBObject> extends Object implements javax.ejb.Handle
A handle for an Enterprise Bean interface.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBHandle(EJBLocator<T> locator)Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends javax.ejb.EJBObject>
EJBHandle<T>create(EJBLocator<T> locator)Construct a new instance.booleanequals(Object other)Determine whether this object is equal to another.booleanequals(EJBHandle<?> other)Determine whether this object is equal to another.TgetEJBObject()EJBLocator<T>getLocator()Get the locator for this handle.inthashCode()Get the hash code for this Enterprise Bean handle.
-
-
-
Constructor Detail
-
EJBHandle
public EJBHandle(EJBLocator<T> locator)
Construct a new instance.- Parameters:
locator- the locator for the EJB instance
-
-
Method Detail
-
create
public static <T extends javax.ejb.EJBObject> EJBHandle<T> create(EJBLocator<T> locator)
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
public T getEJBObject() throws RemoteException
- Specified by:
getEJBObjectin interfacejavax.ejb.Handle- Throws:
RemoteException
-
equals
public boolean equals(Object other)
Determine whether this object is equal to another.
-
equals
public boolean equals(EJBHandle<?> other)
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
public EJBLocator<T> getLocator()
Get the locator for this handle.- Returns:
- the locator for this handle
-
-