T - the EJB remote interface typepublic final class EJBHandle<T extends EJBObject> extends Object implements Handle
| Constructor and Description |
|---|
EJBHandle(EJBLocator<T> locator)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends EJBObject> |
create(EJBLocator<T> locator)
Construct a new instance.
|
boolean |
equals(EJBHandle<?> other)
Determine whether this object is equal to another.
|
boolean |
equals(Object other)
Determine whether this object is equal to another.
|
T |
getEJBObject()
Obtains the EJB object reference represented by this handle.
|
EJBLocator<T> |
getLocator()
Get the locator for this handle.
|
int |
hashCode()
Get the hash code for this EJB handle.
|
public EJBHandle(EJBLocator<T> locator)
locator - the locator for the EJB instancepublic static <T extends EJBObject> EJBHandle<T> create(EJBLocator<T> locator)
T - the EJB object typelocator - the locator for the EJB instance (must not be null)null)public T getEJBObject() throws RemoteException
getEJBObject in interface HandleRemoteException - - The EJB object could not be obtained because of a
system-level failure.public boolean equals(Object other)
public boolean equals(EJBHandle<?> other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
public EJBLocator<T> getLocator()
Copyright © 2017 JBoss by Red Hat. All rights reserved.