JBoss EJB client 1.0.3.Final

org.jboss.ejb.client
Class EJBHandle<T extends javax.ejb.EJBObject>

java.lang.Object
  extended by org.jboss.ejb.client.EJBHandle<T>
Type Parameters:
T - the EJB 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 EJB interface.

Author:
David M. Lloyd
See Also:
Serialized Form

Constructor Summary
EJBHandle(EJBLocator<T> locator)
          Construct a new instance.
 
Method Summary
 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()
          
 EJBLocator<T> getLocator()
           
 int hashCode()
          Get the hash code for this EJB handle.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBHandle

public EJBHandle(EJBLocator<T> locator)
Construct a new instance.

Parameters:
locator - the locator for the EJB instance
Method Detail

getEJBObject

public T getEJBObject()
                                           throws RemoteException

Specified by:
getEJBObject in interface javax.ejb.Handle
Throws:
RemoteException

equals

public boolean equals(Object other)
Determine whether this object is equal to another.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

public boolean equals(EJBHandle<?> 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 EJB handle.

Overrides:
hashCode in class Object
Returns:
the hash code

getLocator

public EJBLocator<T> getLocator()
Returns:
The locator for this handle

JBoss EJB client 1.0.3.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.