org.objectweb.jonas_web.deployment.api
Class EjbRefDesc

java.lang.Object
  |
  +--org.objectweb.jonas_web.deployment.api.EjbRefDesc

public class EjbRefDesc
extends java.lang.Object

Class that represents an ejb-ref tag.

Author:
Ludovic Bert, Florent Benoit

Constructor Summary
EjbRefDesc(org.objectweb.jonas_web.deployment.xml.EjbRef ejbRef, org.objectweb.jonas_web.deployment.xml.JonasEjbRef jBRef)
          Construct a descriptor for an ejb ref tag.
 
Method Summary
 java.lang.String getEjbLink()
          Get the ejb-link.
 java.lang.String getEjbRefType()
          Get the ejb-ref-type.
 java.lang.String getJndiName()
          Get the jndi name of the ejb-ref.
 java.lang.String getName()
          Get the name of the ejb-ref
 void setJndiName(java.lang.String jndiName)
          Set the jndi name of the ejb-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

EjbRefDesc

public EjbRefDesc(org.objectweb.jonas_web.deployment.xml.EjbRef ejbRef,
                  org.objectweb.jonas_web.deployment.xml.JonasEjbRef jBRef)
           throws WebContainerDeploymentDescException
Construct a descriptor for an ejb ref tag.
Parameters:
ejbRef - the ejb-ref resulting of the web.xml parsing.
jBRef - the jonas-ejb-ref resulting of the jonas-web.xml parsing.
Throws:
WebContainerDeploymentDescException - when missing information for creating the EjbRefDesc.
Method Detail

getName

public java.lang.String getName()
Get the name of the ejb-ref
Returns:
String representation of the name.

getEjbRefType

public java.lang.String getEjbRefType()
Get the ejb-ref-type.
Returns:
String representation of the ejb-ref-type.

getEjbLink

public java.lang.String getEjbLink()
Get the ejb-link.
Returns:
String representation of the ejb-link

getJndiName

public java.lang.String getJndiName()
Get the jndi name of the ejb-ref.
Returns:
String representation of the JNDI name

setJndiName

public void setJndiName(java.lang.String jndiName)
Set the jndi name of the ejb-ref.
Parameters:
jndiName - 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