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

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.common.xml.AbsDescriptionElement
          extended by org.ow2.jonas.deployment.common.xml.AbsEnvironmentElement
All Implemented Interfaces:
Serializable, DescriptionGroupXml, Element, JndiEnvRefsGroupXml
Direct Known Subclasses:
ApplicationClient, CommonEjb, WebApp

public abstract class AbsEnvironmentElement
extends AbsDescriptionElement
implements JndiEnvRefsGroupXml

This class defines an abstract implementation for all environment element Entity, Session, WebApp, Application-client elements must extend this class

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
AbsEnvironmentElement()
          Constructor : build a new object for environment
 
Method Summary
 void addEjbLocalRef(EjbLocalRef ejbLocalRef)
          Add a new ejb-local-ref element to this object
 void addEjbRef(EjbRef ejbRef)
          Add a new ejb-ref element to this object
 void addEnvEntry(EnvEntry envEntry)
          Add a new env-entry element to this object
 void addMessageDestinationRef(MessageDestinationRef messageDestinationRef)
          Add a new message-destination-ref element to this object
 void addPersistenceUnitRef(PersistenceUnitRef persistenceUnitRef)
          Add a new persistence-unit-ref element to this object
 void addResourceEnvRef(ResourceEnvRef resourceEnvRef)
          Add a new resource-env-ref element to this object
 void addResourceRef(ResourceRef resourceRef)
          Add a new resource-ref element to this object
 void addServiceRef(ServiceRef serviceRef)
          Add a new service-ref element to this object
 JLinkedList getEjbLocalRefList()
           
 JLinkedList getEjbRefList()
           
 JLinkedList getEnvEntryList()
           
 JLinkedList getMessageDestinationRefList()
           
 JLinkedList getPersistenceUnitRefList()
           
 JLinkedList getResourceEnvRefList()
           
 JLinkedList getResourceRefList()
           
 JLinkedList getServiceRefList()
           
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsDescriptionElement
getDescription, getDisplayName, getIcon, setDescription, setDisplayName, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIcon
 
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
 
Methods inherited from interface org.ow2.jonas.deployment.common.xml.DescriptionGroupXml
getDescription, getDisplayName, getIcon
 

Constructor Detail

AbsEnvironmentElement

public AbsEnvironmentElement()
Constructor : build a new object for environment

Method Detail

addEjbLocalRef

public void addEjbLocalRef(EjbLocalRef ejbLocalRef)
Add a new ejb-local-ref element to this object

Parameters:
ejbLocalRef - the ejb-local-ref object

addEjbRef

public void addEjbRef(EjbRef ejbRef)
Add a new ejb-ref element to this object

Parameters:
ejbRef - the ejb-ref object

addEnvEntry

public void addEnvEntry(EnvEntry envEntry)
Add a new env-entry element to this object

Parameters:
envEntry - the ejb-ref object

addResourceEnvRef

public void addResourceEnvRef(ResourceEnvRef resourceEnvRef)
Add a new resource-env-ref element to this object

Parameters:
resourceEnvRef - the resource-env-ref object

addResourceRef

public void addResourceRef(ResourceRef resourceRef)
Add a new resource-ref element to this object

Parameters:
resourceRef - the resource-ref object

addServiceRef

public void addServiceRef(ServiceRef serviceRef)
Add a new service-ref element to this object

Parameters:
serviceRef - the service-ref object

addMessageDestinationRef

public void addMessageDestinationRef(MessageDestinationRef messageDestinationRef)
Add a new message-destination-ref element to this object

Parameters:
messageDestinationRef - the message-destination-ref object

addPersistenceUnitRef

public void addPersistenceUnitRef(PersistenceUnitRef persistenceUnitRef)
Add a new persistence-unit-ref element to this object

Parameters:
persistenceUnitRef - the persistence-unit-ref object

getEjbLocalRefList

public JLinkedList getEjbLocalRefList()
Specified by:
getEjbLocalRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all ejb-local-ref elements

getEjbRefList

public JLinkedList getEjbRefList()
Specified by:
getEjbRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all ejb-ref elements

getEnvEntryList

public JLinkedList getEnvEntryList()
Specified by:
getEnvEntryList in interface JndiEnvRefsGroupXml
Returns:
the list of all env-entry elements

getResourceEnvRefList

public JLinkedList getResourceEnvRefList()
Specified by:
getResourceEnvRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all resource-env-ref elements

getResourceRefList

public JLinkedList getResourceRefList()
Specified by:
getResourceRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all resource-ref elements

getServiceRefList

public JLinkedList getServiceRefList()
Specified by:
getServiceRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all service-ref elements

getMessageDestinationRefList

public JLinkedList getMessageDestinationRefList()
Specified by:
getMessageDestinationRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all messageDestination-ref elements

getPersistenceUnitRefList

public JLinkedList getPersistenceUnitRefList()
Specified by:
getPersistenceUnitRefList in interface JndiEnvRefsGroupXml
Returns:
the list of all persistence-unit-ref elements


Copyright © 2010 OW2 Consortium. All Rights Reserved.