org.objectweb.jonas_ejb.deployment.api
Class ResourceEnvRefDesc

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.deployment.api.ResourceEnvRefDesc

public class ResourceEnvRefDesc
extends java.lang.Object

The ResourceEnvRef class corresponds to the 'resource-env-ref' element in the XML DTD for EJB 2.0 deployment descriptor and its associated 'jonas-resource-env' element. The resource-env-ref element contains a declaration of enterprise bean's reference to an administered object associated with a resource in the enterprise bean's environment. It consists of: - an optional description (which is not taken into account here), - the resource environment reference name, - and an indication of the resource environment refrence type expected by the enterprise bean code.


Method Summary
 java.lang.String getJndiName()
          Get the jndi name of the resource environment ref.
 java.lang.String getName()
          Get resource environment ref.
 java.lang.Class getType()
          Get resource environment ref.
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Get resource environment ref. name
Returns:
Name of the resource environment ref.

getType

public java.lang.Class getType()
Get resource environment ref. type
Returns:
Class of the resource environment ref.

getJndiName

public java.lang.String getJndiName()
Get the jndi name of the resource environment ref.
Returns:
String representation of the JNDI name

toString

public java.lang.String toString()
String representation of the object for test purpose
Overrides:
toString in class java.lang.Object
Returns:
String representation of this object