org.objectweb.easybeans.rpc
Class LocalCallRef
java.lang.Object
org.objectweb.easybeans.rpc.AbsCallRef
org.objectweb.easybeans.rpc.LocalCallRef
- All Implemented Interfaces:
- javax.naming.Referenceable
public class LocalCallRef
- extends AbsCallRef
Define the Referenceable objectd used by local EJB.
This is the object that is bind in the registry.
- Author:
- Florent Benoit
Field Summary |
static java.lang.String |
EMBEDDED_ID
Property referencing the embedded server's ID. |
private java.lang.Integer |
embeddedID
Embedded server ID. |
Constructor Summary |
LocalCallRef(java.lang.String itfClassName,
java.lang.Integer embeddedID,
java.lang.String containerId,
java.lang.String factoryName,
boolean useID)
Constructor : build a reference. |
Method Summary |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMBEDDED_ID
public static final java.lang.String EMBEDDED_ID
- Property referencing the embedded server's ID.
- See Also:
- Constant Field Values
embeddedID
private java.lang.Integer embeddedID
- Embedded server ID.
LocalCallRef
public LocalCallRef(java.lang.String itfClassName,
java.lang.Integer embeddedID,
java.lang.String containerId,
java.lang.String factoryName,
boolean useID)
- Constructor : build a reference.
- Parameters:
itfClassName
- the name of the interface.embeddedID
- the ID of the embedded server.containerId
- the ID of the container.factoryName
- the name of the factoryuseID
- true if all instance build with this ref are unique
(stateful), false if it references the same object (stateless)
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Retrieves the Reference of this object.
- Specified by:
getReference
in interface javax.naming.Referenceable
- Specified by:
getReference
in class AbsCallRef
- Returns:
- The non-null Reference of this object.
- Throws:
javax.naming.NamingException
- If a naming exception was encountered while
retrieving the reference.