Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.application » [javadoc | source]
org.apache.geronimo.jee.application
public class: Application [javadoc | source]
java.lang.Object
   org.apache.geronimo.jee.application.Application

All Implemented Interfaces:
    Serializable

The complex type for root element, it defines the elements of root element for Geronimo enterprise application deployment plan. Basically it is a sequence of elements environment, module, ext-module, security, and services.

Java class for applicationType complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="applicationType">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}environment"/>
        <element name="module" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}moduleType" maxOccurs="unbounded" minOccurs="0"/>
        <element name="ext-module" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}ext-moduleType" maxOccurs="unbounded" minOccurs="0"/>
        <element ref="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}security" minOccurs="0"/>
        <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}service" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
      <attribute name="application-name" type="{http://www.w3.org/2001/XMLSchema}string" />
    </restriction>
  </complexContent>
</complexType>
Field Summary
protected  Environment environment     
protected  List<Module> module     
protected  List<ExtModule> extModule     
protected  JAXBElement<AbstractSecurity> security     
protected  List<AbstractService> service     
protected  String applicationName     
Method from org.apache.geronimo.jee.application.Application Summary:
getApplicationName,   getEnvironment,   getExtModule,   getModule,   getSecurity,   getService,   setApplicationName,   setEnvironment,   setSecurity
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.jee.application.Application Detail:
 public String getApplicationName() 
    Gets the value of the applicationName property.
 public Environment getEnvironment() 
    Reference to environment element defined in imported "geronimo-module-1.2.xsd"
 public List<ExtModule> getExtModule() 
    Gets the value of the extModule property.

    This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the extModule property.

    For example, to add a new item, do as follows:

       getExtModule().add(newItem);
    

    Objects of the following type(s) are allowed in the list ExtModule

 public List<Module> getModule() 
    Gets the value of the module property.

    This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the module property.

    For example, to add a new item, do as follows:

       getModule().add(newItem);
    

    Objects of the following type(s) are allowed in the list Module

 public JAXBElement<AbstractSecurity> getSecurity() 
    Reference to security element defined in this schema. If this optional element is present, all web and EJB modules must make the appropriate access checks as outlined in the JACC spec. This element groups the security role mapping settings for the application.
 public List<AbstractService> getService() 
    Reference to service element defined in imported "geronimo-module-1.2.xsd". Gets the value of the service property.

    This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the service property.

    For example, to add a new item, do as follows:

       getService().add(newItem);
    

    Objects of the following type(s) are allowed in the list JAXBElement {@code <}Gbean {@code >} JAXBElement {@code <}AbstractService {@code >}

 public  void setApplicationName(String value) 
    Sets the value of the applicationName property.
 public  void setEnvironment(Environment value) 
    Reference to environment element defined in imported "geronimo-module-1.2.xsd"
 public  void setSecurity(JAXBElement<AbstractSecurity> value) 
    Reference to security element defined in this schema. If this optional element is present, all web and EJB modules must make the appropriate access checks as outlined in the JACC spec. This element groups the security role mapping settings for the application.