org.objectweb.jonas_lib.deployment.api
Class ResourceRefDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.ResourceRefDesc

public class ResourceRefDesc
extends java.lang.Object

This class represents the description of a ResourceRef object

Author:
Christophe Ney, Florent Benoit

Field Summary
static int APPLICATION_AUTH
          To indicate that the application manage the authentication.
static int CONTAINER_AUTH
          To indicate that the container manage the authentication.
 
Constructor Summary
ResourceRefDesc(java.lang.ClassLoader classLoader, ResourceRef res, JonasResource jRes)
          Construct a descriptor for the resource-ref and jonas-resource tags.
 
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.String getTypeName()
          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
To indicate that the application manage the authentication.

See Also:
Constant Field Values

CONTAINER_AUTH

public static final int CONTAINER_AUTH
To indicate that the container manage the authentication.

See Also:
Constant Field Values
Constructor Detail

ResourceRefDesc

public ResourceRefDesc(java.lang.ClassLoader classLoader,
                       ResourceRef res,
                       JonasResource jRes)
                throws DeploymentDescException
Construct a descriptor for the resource-ref and jonas-resource tags.

Parameters:
classLoader - the classloader for the classes.
res - the resource-ref resulting of the web.xml parsing.
jRes - the jonas-resource resulting of the jonas-web.xml parsing.
Throws:
DeploymentDescException - when missing information for creating the ResourceRefDesc.
Method Detail

getName

public java.lang.String getName()
Get resource ref. name

Returns:
Name of the resource ref.

getTypeName

public java.lang.String getTypeName()
Get resource ref. type name

Returns:
Class name 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