org.objectweb.jonas_lib.deployment.api
Class ResourceEnvRefDesc

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

public class ResourceEnvRefDesc
extends java.lang.Object

This class represents the description of a ResourceEnvRef object

Author:
Christophe Ney, Florent Benoit

Constructor Summary
ResourceEnvRefDesc(java.lang.ClassLoader classLoader, ResourceEnvRef res, JonasResourceEnv jRes)
          Construct a descriptor for the resource-env-ref and jonas-resource-env tags.
 
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
 

Constructor Detail

ResourceEnvRefDesc

public ResourceEnvRefDesc(java.lang.ClassLoader classLoader,
                          ResourceEnvRef res,
                          JonasResourceEnv jRes)
                   throws DeploymentDescException
Construct a descriptor for the resource-env-ref and jonas-resource-env tags.

Parameters:
classLoader - the classloader for the classes.
res - the resource-env-ref resulting of the web.xml parsing.
jRes - the jonas-resource-env resulting of the jonas-web.xml parsing.
Throws:
DeploymentDescException - when missing information for creating the ResourceEnvRefDesc.
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.