org.ow2.jonas.deployment.common
Class ResourceRefDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.ResourceRefDesc
All Implemented Interfaces:
IResourceRefDesc

public class ResourceRefDesc
extends Object
implements IResourceRefDesc

This class represents the description of a ResourceRef object

Author:
Christophe Ney, Florent Benoit

Field Summary
 
Fields inherited from interface org.ow2.jonas.deployment.api.IResourceRefDesc
APPLICATION_AUTH, CONTAINER_AUTH
 
Constructor Summary
ResourceRefDesc(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.
 String getJndiName()
          Get the jndi name of the resource ref.
 String getName()
          Get resource ref.
 String getTypeName()
          Get resource ref.
 boolean isJdbc()
          Assessor for JDBC resource
 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

ResourceRefDesc

public ResourceRefDesc(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 String getName()
Description copied from interface: IResourceRefDesc
Get resource ref. name

Specified by:
getName in interface IResourceRefDesc
Returns:
Name of the resource ref.

getTypeName

public String getTypeName()
Description copied from interface: IResourceRefDesc
Get resource ref. type name

Specified by:
getTypeName in interface IResourceRefDesc
Returns:
Class name of the resource ref.

getAuthentication

public int getAuthentication()
Description copied from interface: IResourceRefDesc
Get the authentication of the resource ref.

Specified by:
getAuthentication in interface IResourceRefDesc
Returns:
Authentication value within APPLICATION_AUTH, CONTAINER_AUTH

isJdbc

public boolean isJdbc()
Description copied from interface: IResourceRefDesc
Assessor for JDBC resource

Specified by:
isJdbc in interface IResourceRefDesc
Returns:
true if the resource is Jdbc compliant

getJndiName

public String getJndiName()
Description copied from interface: IResourceRefDesc
Get the jndi name of the resource ref.

Specified by:
getJndiName in interface IResourceRefDesc
Returns:
String representation of the 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.