org.objectweb.jonas_lib.deployment.xml
Class JonasServiceRef

java.lang.Object
  extended byorg.objectweb.jonas_lib.deployment.xml.AbsElement
      extended byorg.objectweb.jonas_lib.deployment.xml.JonasServiceRef
All Implemented Interfaces:
Element, java.io.Serializable

public class JonasServiceRef
extends AbsElement

This class defines the implementation of the element jonas-service-ref.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
JonasServiceRef()
          Constructor : build a new JonasServiceRef object
 
Method Summary
 void addJonasInitParam(JonasInitParam jonasInitParam)
          Add a parameter
 java.lang.String getJndiName()
           
 JLinkedList getJonasInitParamList()
           
 java.lang.String getServiceRefName()
           
 void setJndiName(java.lang.String jndiName)
          Sets the jndi name
 void setServiceRefName(java.lang.String serviceRefName)
          Sets the name
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JonasServiceRef

public JonasServiceRef()
Constructor : build a new JonasServiceRef object

Method Detail

setServiceRefName

public void setServiceRefName(java.lang.String serviceRefName)
Sets the name

Parameters:
serviceRefName - the name to use

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the jndi name

Parameters:
jndiName - the jndi-name to use

addJonasInitParam

public void addJonasInitParam(JonasInitParam jonasInitParam)
Add a parameter

Parameters:
jonasInitParam - the JonasInitParam object to add to our list

getServiceRefName

public java.lang.String getServiceRefName()
Returns:
the name of the service-ref

getJndiName

public java.lang.String getJndiName()
Returns:
the jndi-name of the service-ref

getJonasInitParamList

public JLinkedList getJonasInitParamList()
Returns:
the list of init parameters

toXML

public java.lang.String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.