org.objectweb.jonas_ejb.deployment.api
Class EjbRefDesc

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

public class EjbRefDesc
extends java.lang.Object

Class that represents an ejb-ref and jonas-ejb-ref tags. Only ejb-name and jndi-name are used in Jonas.

Author:
Christophe Ney Contributor(s): Florent Benoit & Ludovic Bert

Constructor Summary
EjbRefDesc(org.objectweb.jonas_ejb.deployment.xml.EjbRef bRef, org.objectweb.jonas_ejb.deployment.xml.JonasEjbRef jBRef)
          Package protected constructor used by API.
 
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_ejb.deployment.xml.EjbRef bRef,
                  org.objectweb.jonas_ejb.deployment.xml.JonasEjbRef jBRef)
           throws DeploymentDescException
Package protected constructor used by API. The JonasEjbRef may be null when an ejb-link is specified.
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. The value may be null when a jonas-ejb-ref is specified.
Returns:
String representation of the ejb-link

getJndiName

public java.lang.String getJndiName()
Get the jndi name of the ejb-ref. The value may be null when an ejb-link is specified.
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 - an 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