org.objectweb.jonas_lib.deployment.api.ResourceRefDesc Class Reference

List of all members.

Public Member Functions

 ResourceRefDesc (ClassLoader classLoader, ResourceRef res, JonasResource jRes) throws DeploymentDescException
String getName ()
String getTypeName ()
int getAuthentication ()
boolean isJdbc ()
String getJndiName ()
String toString ()

Static Public Attributes

final int APPLICATION_AUTH = 0
final int CONTAINER_AUTH = 1

Detailed Description

This class represents the description of a ResourceRef object
Author:
Christophe Ney

Florent Benoit

Definition at line 38 of file ResourceRefDesc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.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.
Exceptions:
DeploymentDescException when missing information for creating the ResourceRefDesc.

Definition at line 83 of file ResourceRefDesc.java.


Member Function Documentation

int org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.getAuthentication  ) 
 

Get the authentication of the resource ref.

Returns:
Authentication value within APPLICATION_AUTH, CONTAINER_AUTH

Definition at line 120 of file ResourceRefDesc.java.

String org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.getJndiName  ) 
 

Get the jndi name of the resource ref.

Returns:
String representation of the JNDI name

Definition at line 136 of file ResourceRefDesc.java.

Referenced by org.objectweb.jonas.container.EJB.getAllDataSourceName(), org.objectweb.jonas.container.EJB.getAllMailFactoryMName(), org.objectweb.jonas.container.EJB.getAllMailFactorySName(), and org.objectweb.jonas_ejb.container.JContainer.setBeanEnvironment().

String org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.getName  ) 
 

Get resource ref. name

Returns:
Name of the resource ref.

Definition at line 104 of file ResourceRefDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JContainer.setBeanEnvironment().

String org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.getTypeName  ) 
 

Get resource ref. type name

Returns:
Class name of the resource ref.

Definition at line 112 of file ResourceRefDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JContainer.setBeanEnvironment().

boolean org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.isJdbc  ) 
 

Assessor for JDBC resource

Returns:
true if the resource is Jdbc compliant

Definition at line 128 of file ResourceRefDesc.java.

Referenced by org.objectweb.jonas.container.EJB.getAllDataSourceName().

String org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.toString  ) 
 

String representation of the object for test purpose

Returns:
String representation of this object

Definition at line 144 of file ResourceRefDesc.java.


Member Data Documentation

final int org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.APPLICATION_AUTH = 0 [static]
 

To indicate that the application manage the authentication.

Definition at line 43 of file ResourceRefDesc.java.

final int org.objectweb.jonas_lib.deployment.api.ResourceRefDesc.CONTAINER_AUTH = 1 [static]
 

To indicate that the container manage the authentication.

Definition at line 48 of file ResourceRefDesc.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:14 2005 for JOnAS by  doxygen 1.3.9.1