com.caucho.ejb.protocol
Class HomeHandleImpl

java.lang.Object
  extended by com.caucho.ejb.protocol.AbstractHomeHandle
      extended by com.caucho.ejb.protocol.HomeHandleImpl
All Implemented Interfaces:
java.io.Serializable, HomeHandle

public class HomeHandleImpl
extends AbstractHomeHandle

Implementation for a home handle.

See Also:
Serialized Form

Field Summary
protected  EJBHome home
           
protected  java.lang.String serverId
           
 
Fields inherited from class com.caucho.ejb.protocol.AbstractHomeHandle
log
 
Constructor Summary
HomeHandleImpl()
          Null arg constructor for serialization.
HomeHandleImpl(EJBHome home, java.lang.String url)
          Creates a new HomeHandle.
HomeHandleImpl(java.lang.String url)
          Creates a new HomeHandle.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the handle equals the object.
 EJBHome getEJBHome()
           
 java.lang.String getServerId()
          Return the bean's server id.
 java.lang.String getURL(java.lang.String protocol)
          Returns the URL for a particular protocol.
 int hashCode()
          Returns the hash code for the container.
 
Methods inherited from class com.caucho.ejb.protocol.AbstractHomeHandle
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverId

protected java.lang.String serverId

home

protected transient EJBHome home
Constructor Detail

HomeHandleImpl

public HomeHandleImpl()
Null arg constructor for serialization.


HomeHandleImpl

public HomeHandleImpl(java.lang.String url)
Creates a new HomeHandle.

Parameters:
url - the url for the bean

HomeHandleImpl

public HomeHandleImpl(EJBHome home,
                      java.lang.String url)
Creates a new HomeHandle.

Parameters:
url - the url for the bean
Method Detail

getEJBHome

public EJBHome getEJBHome()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getServerId

public java.lang.String getServerId()
Return the bean's server id.


getURL

public java.lang.String getURL(java.lang.String protocol)
Description copied from class: AbstractHomeHandle
Returns the URL for a particular protocol.

Specified by:
getURL in class AbstractHomeHandle

hashCode

public int hashCode()
Returns the hash code for the container.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if the handle equals the object.

Overrides:
equals in class java.lang.Object