org.ow2.jonas.deployment.common
Class ResourceEnvRefDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.ResourceEnvRefDesc
All Implemented Interfaces:
IResourceEnvRefDesc

public class ResourceEnvRefDesc
extends Object
implements IResourceEnvRefDesc

This class represents the description of a ResourceEnvRef object

Author:
Christophe Ney, Florent Benoit

Constructor Summary
ResourceEnvRefDesc(ClassLoader classLoader, ResourceEnvRef res, JonasResourceEnv jRes)
          Construct a descriptor for the resource-env-ref and jonas-resource-env tags.
 
Method Summary
 String getJndiName()
           
 String getName()
           
 Class getType()
           
 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(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 String getName()
Specified by:
getName in interface IResourceEnvRefDesc
Returns:
Returns the resource-env-ref/resource-env-ref-name.

getType

public Class getType()
Specified by:
getType in interface IResourceEnvRefDesc
Returns:
Returns the resource-env-ref/resource-env-ref-type.

getJndiName

public String getJndiName()
Specified by:
getJndiName in interface IResourceEnvRefDesc
Returns:
Returns the jonas-res-env-ref/jndi-name.

toString

public String toString()
String representation of the object for test purpose.

Overrides:
toString in class Object
Returns:
String representation of this object.


Copyright © 2010 OW2 Consortium. All Rights Reserved.