javaee:env-entryType

The env-entryType is used to declare an application's
	environment entry. The declaration consists of an optional
	description, the name of the environment entry, a type
	(optional if the value is injected, otherwise required), and
	an optional value.

	It also includes optional elements to define injection of
	the named resource into fields or JavaBeans properties.

	If a value is not specified and injection is requested,
	no injection will occur and no entry of the specified name
	will be created.  This allows an initial value to be
	specified in the source code without being incorrectly
	changed when no override has been specified.

	If a value is not specified and no injection is requested,
	a value must be supplied during deployment.

	This type is used by env-entry elements.

Complex Type Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xsd:ID optional

Used By

Source

<xsd:complexType name="env-entryType">
  <xsd:annotation>
    <xsd:documentation>The env-entryType is used to declare an application's environment entry. The declaration consists of an optional description, the name of the environment entry, a type (optional if the value is injected, otherwise required), and an optional value. It also includes optional elements to define injection of the named resource into fields or JavaBeans properties. If a value is not specified and injection is requested, no injection will occur and no entry of the specified name will be created. This allows an initial value to be specified in the source code without being incorrectly changed when no override has been specified. If a value is not specified and no injection is requested, a value must be supplied during deployment. This type is used by env-entry elements.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
    <xsd:element name="env-entry-name" type="javaee:jndi-nameType">
      <xsd:annotation>
        <xsd:documentation>
          <![CDATA[

	      The env-entry-name element contains the name of a
	      Deployment Component's environment entry.  The name
	      is a JNDI name relative to the java:comp/env
	      context.  The name must be unique within a
	      Deployment Component. The uniqueness
	      constraints must be defined within the declared
	      context.

	      Example:

	      <env-entry-name>minAmount</env-entry-name>

	      ]]>
        </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="env-entry-type" type="javaee:env-entry-type-valuesType" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>
          <![CDATA[

	      The env-entry-type element contains the Java language
	      type of the environment entry.  If an injection target
	      is specified for the environment entry, the type may
	      be omitted, or must match the type of the injection
	      target.  If no injection target is specified, the type
	      is required.

	      Example:

	      <env-entry-type>java.lang.Integer</env-entry-type>

	      ]]>
        </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="env-entry-value" type="javaee:xsdStringType" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>
          <![CDATA[

	      The env-entry-value designates the value of a
	      Deployment Component's environment entry. The value
	      must be a String that is valid for the
	      constructor of the specified type that takes a
	      single String parameter, or for java.lang.Character,
	      a single character.

	      Example:

	      <env-entry-value>100.00</env-entry-value>

	      ]]>
        </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:group ref="javaee:resourceGroup"/>
  </xsd:sequence>
  <xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>