org.objectweb.jonas_web.deployment.api
Class ResourceEnvRefDesc
java.lang.Object
|
+--org.objectweb.jonas_web.deployment.api.ResourceEnvRefDesc
- public class ResourceEnvRefDesc
- extends java.lang.Object
Class that represents the resource-env-ref and jonas-resource-env tags.
- Author:
- Ludovic Bert, Florent Benoit
Constructor Summary |
ResourceEnvRefDesc(java.lang.ClassLoader classLoader,
org.objectweb.jonas_web.deployment.xml.ResourceEnvRef res,
org.objectweb.jonas_web.deployment.xml.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. name. |
java.lang.Class |
getType()
Get resource environment ref. type. |
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 |
ResourceEnvRefDesc
public ResourceEnvRefDesc(java.lang.ClassLoader classLoader,
org.objectweb.jonas_web.deployment.xml.ResourceEnvRef res,
org.objectweb.jonas_web.deployment.xml.JonasResourceEnv jRes)
throws WebContainerDeploymentDescException
- 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:
WebContainerDeploymentDescException
- when missing information for
creating the ResourceEnvRefDesc.
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.