org.ow2.jonas.deployment.common
Class EjbRefDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.EjbRefDesc
All Implemented Interfaces:
IEJBRefDesc

public class EjbRefDesc
extends Object
implements IEJBRefDesc

This class represents the description of an EjbRef object

Author:
Christophe Ney, Florent Benoit

Constructor Summary
EjbRefDesc(EjbRef ejbRef, JonasEjbRef jonasEjbRef)
          Construct a descriptor for an ejb-ref tag.
 
Method Summary
 String getEjbLink()
          Get the ejb-link.
 String getEjbRefName()
          Get the name of the ejb-ref.
 String getEjbRefType()
          Get the ejb-ref-type.
 String getHome()
           
 String getJndiName()
          Get the jndi name of the ejb-ref.
 String getRemote()
           
 void setJndiName(String jndiName)
          Set the jndi name of the ejb-ref.
 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(EjbRef ejbRef,
                  JonasEjbRef jonasEjbRef)
Construct a descriptor for an ejb-ref tag.

Parameters:
ejbRef - the ejb ref resulting of the xml parsing.
jonasEjbRef - the jonas ejb ref resulting of the xml parsing.
Method Detail

getEjbRefName

public String getEjbRefName()
Description copied from interface: IEJBRefDesc
Get the name of the ejb-ref.

Specified by:
getEjbRefName in interface IEJBRefDesc
Returns:
String representation of the ejb-ref-name.

getEjbRefType

public String getEjbRefType()
Description copied from interface: IEJBRefDesc
Get the ejb-ref-type.

Specified by:
getEjbRefType in interface IEJBRefDesc
Returns:
String representation of the ejb-ref-type.

getEjbLink

public String getEjbLink()
Description copied from interface: IEJBRefDesc
Get the ejb-link.

Specified by:
getEjbLink in interface IEJBRefDesc
Returns:
String representation of the ejb-link

getJndiName

public String getJndiName()
Description copied from interface: IEJBRefDesc
Get the jndi name of the ejb-ref.

Specified by:
getJndiName in interface IEJBRefDesc
Returns:
String representation of the JNDI name

setJndiName

public void setJndiName(String jndiName)
Set the jndi name of the ejb-ref.

Parameters:
jndiName - 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

getHome

public String getHome()
Specified by:
getHome in interface IEJBRefDesc
Returns:
the fully qualified name of the enterprise bean's home interface

getRemote

public String getRemote()
Specified by:
getRemote in interface IEJBRefDesc
Returns:
the fully qualified name of the enterprise bean's remote interface


Copyright © 2010 OW2 Consortium. All Rights Reserved.