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

Class to hold meta-information related to resource-ref description. The resource-ref element contains a declaration of enterprise bean's reference to an external resource.
It consists of:

Author:
Helene Joanin, Christophe Ney [cney@batisseurs.com]

Field Summary
static int APPLICATION_AUTH
           
static int CONTAINER_AUTH
           
 
Constructor Summary
ResourceRefDesc(java.lang.ClassLoader classLoader, org.objectweb.jonas_ejb.deployment.xml.ResourceRef res, org.objectweb.jonas_ejb.deployment.xml.JonasResource jRes)
          constructor to be used by parent node
 
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. name
 java.lang.Class getType()
          Get resource ref. type
 java.lang.String getTypeName()
          Get resource ref. type type
 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
Constructor Detail

ResourceRefDesc

public ResourceRefDesc(java.lang.ClassLoader classLoader,
                       org.objectweb.jonas_ejb.deployment.xml.ResourceRef res,
                       org.objectweb.jonas_ejb.deployment.xml.JonasResource jRes)
                throws DeploymentDescException
constructor to be used by parent node
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.

getTypeName

public java.lang.String getTypeName()
Get resource ref. type type
Returns:
String 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