org.ow2.jonas.deployment.common.xml
Class AbsJonasEnvironmentElement

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.common.xml.AbsJonasEnvironmentElement
All Implemented Interfaces:
Serializable, Element, JonasJndiEnvRefsGroupXml
Direct Known Subclasses:
JonasClient, JonasCommonEjb, JonasWebApp

public abstract class AbsJonasEnvironmentElement
extends AbsElement
implements JonasJndiEnvRefsGroupXml

This class defines an abstract implementation for all jonas environment element (jonas-entity, jonas-session, jonas-web-app, jonas-client, etc.).

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
AbsJonasEnvironmentElement()
          Constructor : build a new object which is common to environment elements
 
Method Summary
 void addJonasEjbRef(JonasEjbRef jonasEjbRef)
          Add a new jonas-ejb-ref element to this object
 void addJonasMessageDestinationRef(JonasMessageDestinationRef jonasMessageDestinationRef)
          Add a new jonas-message-destination-ref element to this object
 void addJonasResource(JonasResource jonasResource)
          Add a new jonas-resource element to this object
 void addJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
          Add a new jonas-resource-env element to this object
 void addJonasServiceRef(JonasServiceRef jonasServiceRef)
          Add a new jonas-service-ref element to this object
 JLinkedList getJonasEjbRefList()
           
 JLinkedList getJonasMessageDestinationRefList()
           
 JLinkedList getJonasResourceEnvList()
           
 JLinkedList getJonasResourceList()
           
 JLinkedList getJonasServiceRefList()
           
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsJonasEnvironmentElement

public AbsJonasEnvironmentElement()
Constructor : build a new object which is common to environment elements

Method Detail

addJonasEjbRef

public void addJonasEjbRef(JonasEjbRef jonasEjbRef)
Add a new jonas-ejb-ref element to this object

Parameters:
jonasEjbRef - the jonas-ejb-ref object

addJonasResourceEnv

public void addJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
Add a new jonas-resource-env element to this object

Parameters:
jonasResourceEnv - the jonas-resource-env object

addJonasResource

public void addJonasResource(JonasResource jonasResource)
Add a new jonas-resource element to this object

Parameters:
jonasResource - the jonas-resource object

addJonasServiceRef

public void addJonasServiceRef(JonasServiceRef jonasServiceRef)
Add a new jonas-service-ref element to this object

Parameters:
jonasServiceRef - the jonas-service-ref object

addJonasMessageDestinationRef

public void addJonasMessageDestinationRef(JonasMessageDestinationRef jonasMessageDestinationRef)
Add a new jonas-message-destination-ref element to this object

Parameters:
jonasMessageDestinationRef - the jonas-message-destination-ref object

getJonasEjbRefList

public JLinkedList getJonasEjbRefList()
Specified by:
getJonasEjbRefList in interface JonasJndiEnvRefsGroupXml
Returns:
the list of all jonas-ejb-ref elements

getJonasResourceEnvList

public JLinkedList getJonasResourceEnvList()
Specified by:
getJonasResourceEnvList in interface JonasJndiEnvRefsGroupXml
Returns:
the list of all jonas-resource-env elements

getJonasResourceList

public JLinkedList getJonasResourceList()
Specified by:
getJonasResourceList in interface JonasJndiEnvRefsGroupXml
Returns:
the list of all jonas-resource elements

getJonasServiceRefList

public JLinkedList getJonasServiceRefList()
Specified by:
getJonasServiceRefList in interface JonasJndiEnvRefsGroupXml
Returns:
the list of all jonas-service-ref elements

getJonasMessageDestinationRefList

public JLinkedList getJonasMessageDestinationRefList()
Specified by:
getJonasMessageDestinationRefList in interface JonasJndiEnvRefsGroupXml
Returns:
the list of all jonas-message-destination-ref elements


Copyright © 2010 OW2 Consortium. All Rights Reserved.