org.ow2.jonas.deployment.common
Class EjbLocalRefDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.EjbLocalRefDesc
All Implemented Interfaces:
IEJBLocalRefDesc

public class EjbLocalRefDesc
extends Object
implements IEJBLocalRefDesc

This class represents the description of an EjblocalRef object

Author:
Christophe Ney, Florent Benoit

Constructor Summary
EjbLocalRefDesc(EjbLocalRef ejbLocalRef)
          Construct a descriptor for an ejb-local-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 getJndiLocalName()
          Get the jndi name of the ejb-local-ref.
 String getLocal()
          Get the Local class of the target bean
 String getLocalHome()
          Get the LocalHome class of the target bean
 void setJndiLocalName(String jndiName)
          Set the jndi name of the ejb-local-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

EjbLocalRefDesc

public EjbLocalRefDesc(EjbLocalRef ejbLocalRef)
                throws DeploymentDescException
Construct a descriptor for an ejb-local-ref tag.

Parameters:
ejbLocalRef - the ejb local ref resulting of the xml parsing.
Throws:
DeploymentDescException - when missing information for creating the EjbLocalRefDesc.
Method Detail

getEjbRefName

public String getEjbRefName()
Get the name of the ejb-ref

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

getEjbRefType

public String getEjbRefType()
Get the ejb-ref-type.

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

getLocalHome

public String getLocalHome()
Get the LocalHome class of the target bean

Specified by:
getLocalHome in interface IEJBLocalRefDesc
Returns:
String representation of the class.

getLocal

public String getLocal()
Get the Local class of the target bean

Specified by:
getLocal in interface IEJBLocalRefDesc
Returns:
String representation of the class.

getEjbLink

public String getEjbLink()
Get the ejb-link

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

getJndiLocalName

public String getJndiLocalName()
Get the jndi name of the ejb-local-ref.

Specified by:
getJndiLocalName in interface IEJBLocalRefDesc
Returns:
the string representation of the JNDI name

setJndiLocalName

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

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