org.objectweb.easybeans.rpc
Class EJBHomeCallRef

java.lang.Object
  extended by org.objectweb.easybeans.rpc.AbsCallRef
      extended by org.objectweb.easybeans.rpc.RemoteCallRef
          extended by org.objectweb.easybeans.rpc.EJBHomeCallRef
All Implemented Interfaces:
javax.naming.Referenceable

public class EJBHomeCallRef
extends RemoteCallRef

Defines the Referenceable objectd used by EJB Home. This is the object that is bind in the registry.

Author:
Florent Benoit

Field Summary
static java.lang.String REMOTE_INTERFACE
          Property used for referencing the remote interface class name.
private  java.lang.String remoteInterface
          Name of the remote interface.
 
Fields inherited from class org.objectweb.easybeans.rpc.AbsCallRef
CONTAINER_ID, FACTORY_NAME, INTERFACE_NAME, USE_ID
 
Constructor Summary
EJBHomeCallRef(java.lang.String itfClassName, java.lang.String containerId, java.lang.String factoryName, boolean useID, java.lang.String remoteInterface)
          Constructor : build a reference.
 
Method Summary
protected  java.lang.String getFactoryClassName()
          Use the EJB Home factory.
protected  void updateRefAddr(javax.naming.Reference reference)
          Adds some settings to the reference.
 
Methods inherited from class org.objectweb.easybeans.rpc.RemoteCallRef
getReference
 
Methods inherited from class org.objectweb.easybeans.rpc.AbsCallRef
getItfClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE_INTERFACE

public static final java.lang.String REMOTE_INTERFACE
Property used for referencing the remote interface class name.

See Also:
Constant Field Values

remoteInterface

private java.lang.String remoteInterface
Name of the remote interface.

Constructor Detail

EJBHomeCallRef

public EJBHomeCallRef(java.lang.String itfClassName,
                      java.lang.String containerId,
                      java.lang.String factoryName,
                      boolean useID,
                      java.lang.String remoteInterface)
Constructor : build a reference.

Parameters:
itfClassName - the name of the interface.
containerId - the ID of the container.
factoryName - the name of the factory
useID - true if all instance build with this ref are unique (stateful), false if it references the same object (stateless)
remoteInterface - the name of the remote interface
Method Detail

getFactoryClassName

protected java.lang.String getFactoryClassName()
Use the EJB Home factory.

Overrides:
getFactoryClassName in class RemoteCallRef
Returns:
the name of the factory used by this reference.

updateRefAddr

protected void updateRefAddr(javax.naming.Reference reference)
Adds some settings to the reference.

Overrides:
updateRefAddr in class AbsCallRef
Parameters:
reference - the reference to configure