Package org.jboss.ejb.client
Class EJBHomeHandle<T extends jakarta.ejb.EJBHome>
- java.lang.Object
-
- org.jboss.ejb.client.EJBHomeHandle<T>
-
- Type Parameters:
T
- the Enterprise Beans remote home interface type
- All Implemented Interfaces:
jakarta.ejb.HomeHandle
,Serializable
public final class EJBHomeHandle<T extends jakarta.ejb.EJBHome> extends Object implements jakarta.ejb.HomeHandle
A handle for an Enterprise Bean home interface.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBHomeHandle(EJBHomeLocator<T> locator)
Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends jakarta.ejb.EJBHome>
EJBHomeHandle<T>create(EJBHomeLocator<T> locator)
Construct a new instance.boolean
equals(Object other)
Determine whether this object is equal to another.boolean
equals(EJBHomeHandle<?> other)
Determine whether this object is equal to another.T
getEJBHome()
EJBHomeLocator<T>
getLocator()
Get the locator for this handle.int
hashCode()
Get the hash code for this Enterprise Beans home handle.
-
-
-
Constructor Detail
-
EJBHomeHandle
public EJBHomeHandle(EJBHomeLocator<T> locator)
Construct a new instance.- Parameters:
locator
- the locator for the home interface
-
-
Method Detail
-
create
public static <T extends jakarta.ejb.EJBHome> EJBHomeHandle<T> create(EJBHomeLocator<T> locator)
Construct a new instance.- Type Parameters:
T
- the Enterprise Beans home type- Parameters:
locator
- the locator for the home interface (must not benull
)- Returns:
- the handle (not
null
)
-
getEJBHome
public T getEJBHome() throws RemoteException
- Specified by:
getEJBHome
in interfacejakarta.ejb.HomeHandle
- Throws:
RemoteException
-
equals
public boolean equals(Object other)
Determine whether this object is equal to another.
-
equals
public boolean equals(EJBHomeHandle<?> other)
Determine whether this object is equal to another.- Parameters:
other
- the other object- Returns:
true
if they are equal,false
otherwise
-
hashCode
public int hashCode()
Get the hash code for this Enterprise Beans home handle.
-
getLocator
public EJBHomeLocator<T> getLocator()
Get the locator for this handle.- Returns:
- the locator for this handle
-
-