org.objectweb.jonas_ejb.deployment.api
Class ResourceRefDesc

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

public class ResourceRefDesc
extends java.lang.Object

The ResourceRef class corresponds to the 'resource-ref' element in the XML DTD for EJB 1.1 deployment descriptor. The resource-ref element contains a declaration of enterprise bean's reference to an external resource. It consists of: - an optional description (which is not taken into account here), - the resource manager connection factory reference name, - the indication of the resource manager connection factory type expected by the enterprise bean code, - and the type of authentication (bean or container).

Author:
Helene Joanin, Christophe Ney

Field Summary
static int APPLICATION_AUTH
           
static int CONTAINER_AUTH
           
 
Method Summary
 int getAuthentication()
          Get the authentication of the resource ref.
 java.lang.String getJndiName()
          Get the jndi name of the resource ref.
 java.lang.String getName()
          Get resource ref.
 java.lang.Class getType()
          Get resource ref.
 boolean isJdbc()
          Assessor for JDBC resource
 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
 

Field Detail

APPLICATION_AUTH

public static final int APPLICATION_AUTH

CONTAINER_AUTH

public static final int CONTAINER_AUTH
Method Detail

getName

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

getType

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

getAuthentication

public int getAuthentication()
Get the authentication of the resource ref.
Returns:
Authentication value within APPLICATION_AUTH, CONTAINER_AUTH

isJdbc

public boolean isJdbc()
Assessor for JDBC resource
Returns:
true if the resource is Jdbc compliant

getJndiName

public java.lang.String getJndiName()
Get the jndi name of the resource 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