| java.lang.Object org.ow2.easybeans.proxy.reference.AbsCallRef
All known Subclasses: org.ow2.easybeans.proxy.reference.LocalCallRef, org.ow2.easybeans.proxy.reference.RemoteCallRef,
AbsCallRef | abstract public class AbsCallRef implements EZBRef(Code) | | Define a common Referenceable objectd used by local or remote EJB.
author: Florent Benoit |
Field Summary | |
final public static String | CONTAINER_ID Property used for referencing the container ID. | final public static String | FACTORY_NAME Property used for referencing the name of the factory. | final public static String | INTERFACE_NAME Property used for referencing the interface class name. | final public static String | USE_ID Property used for using an unique ID or not. |
Constructor Summary | |
public | AbsCallRef(String itfClassName, String containerId, String factoryName, boolean useID) Constructor : build a reference. |
CONTAINER_ID | final public static String CONTAINER_ID(Code) | | Property used for referencing the container ID.
|
FACTORY_NAME | final public static String FACTORY_NAME(Code) | | Property used for referencing the name of the factory.
|
INTERFACE_NAME | final public static String INTERFACE_NAME(Code) | | Property used for referencing the interface class name.
|
USE_ID | final public static String USE_ID(Code) | | Property used for using an unique ID or not.
|
AbsCallRef | public AbsCallRef(String itfClassName, String containerId, String factoryName, boolean useID)(Code) | | Constructor : build a reference.
Parameters: itfClassName - the name of the interface. Parameters: containerId - the ID of the container. Parameters: factoryName - the name of the factory Parameters: useID - true if all instance build with this ref are unique(stateful), false if it references the same object (stateless) |
getFactory | public Factory, ?> getFactory()(Code) | | Gets the factory of this reference.
the factory linked to this refernence object. |
getItfClassName | public String getItfClassName()(Code) | | Gets the interface class name.
the name of the interface. |
getJNDIName | public String getJNDIName()(Code) | | Gets the JNDI name of this reference.
JNDI name of this reference. |
getReference | abstract public Reference getReference() throws NamingException(Code) | | Retrieves the Reference of this object.
The non-null Reference of this object. exception: NamingException - If a naming exception was encountered whileretrieving the reference. |
setFactory | public void setFactory(Factory, ?> factory)(Code) | | Sets the factory of this reference.
Parameters: factory - the given factory. |
setJNDIName | public void setJNDIName(String jndiName)(Code) | | Sets the JNDI name of this reference.
Parameters: jndiName - the JNDI name value. |
updateRefAddr | protected void updateRefAddr(Reference reference)(Code) | | Adds some settings to the reference.
Parameters: reference - the reference to configure |
|
|