📄 javaee_5.xsd
字号:
</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="lifecycle-callback-class" type="javaee:fully-qualified-classType" minOccurs="0"/> <xsd:element name="lifecycle-callback-method" type="javaee:java-identifierType"/> </xsd:sequence> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="listenerType"> <xsd:annotation> <xsd:documentation> The listenerType indicates the deployment properties for a web application listener bean. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:group ref="javaee:descriptionGroup"/> <xsd:element name="listener-class" type="javaee:fully-qualified-classType"> <xsd:annotation> <xsd:documentation> The listener-class element declares a class in the application must be registered as a web application listener bean. The value is the fully qualified classname of the listener class. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="local-homeType"> <xsd:annotation> <xsd:documentation> The local-homeType defines the fully-qualified name of an enterprise bean's local home interface. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:fully-qualified-classType"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="localType"> <xsd:annotation> <xsd:documentation> The localType defines the fully-qualified name of an enterprise bean's local interface. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:fully-qualified-classType"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="message-destination-linkType"> <xsd:annotation> <xsd:documentation> The message-destination-linkType is used to link a message destination reference or message-driven bean to a message destination. The Assembler sets the value to reflect the flow of messages between producers and consumers in the application. The value must be the message-destination-name of a message destination in the same Deployment File or in another Deployment File in the same Java EE application unit. Alternatively, the value may be composed of a path name specifying a Deployment File containing the referenced message destination with the message-destination-name of the destination appended and separated from the path name by "#". The path name is relative to the Deployment File containing Deployment Component that is referencing the message destination. This allows multiple message destinations with the same name to be uniquely identified. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="message-destination-refType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The message-destination-ref element contains a declaration of Deployment Component's reference to a message destination associated with a resource in Deployment Component's environment. It consists of: - an optional description - the message destination reference name - an optional message destination type - an optional specification as to whether the destination is used for consuming or producing messages, or both. if not specified, "both" is assumed. - an optional link to the message destination - optional injection targets The message destination type must be supplied unless an injection target is specified, in which case the type of the target is used. If both are specified, the type must be assignment compatible with the type of the injection target. Examples: <message-destination-ref> <message-destination-ref-name>jms/StockQueue </message-destination-ref-name> <message-destination-type>javax.jms.Queue </message-destination-type> <message-destination-usage>Consumes </message-destination-usage> <message-destination-link>CorporateStocks </message-destination-link> </message-destination-ref> ]]> </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="message-destination-ref-name" type="javaee:jndi-nameType"> <xsd:annotation> <xsd:documentation> The message-destination-ref-name element specifies the name of a message destination reference; its value is the environment entry name used in Deployment Component code. The name is a JNDI name relative to the java:comp/env context and must be unique within an ejb-jar (for enterprise beans) or a Deployment File (for others). </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="message-destination-type" type="javaee:message-destination-typeType" minOccurs="0"/> <xsd:element name="message-destination-usage" type="javaee:message-destination-usageType" minOccurs="0"/> <xsd:element name="message-destination-link" type="javaee:message-destination-linkType" minOccurs="0"/> <xsd:group ref="javaee:resourceGroup"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="message-destination-typeType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The message-destination-typeType specifies the type of the destination. The type is specified by the Java interface expected to be implemented by the destination. Example: <message-destination-type>javax.jms.Queue </message-destination-type> ]]> </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:fully-qualified-classType"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="message-destination-usageType"> <xsd:annotation> <xsd:documentation> The message-destination-usageType specifies the use of the message destination indicated by the reference. The value indicates whether messages are consumed from the message destination, produced for the destination, or both. The Assembler makes use of this information in linking producers of a destination with its consumers. The value of the message-destination-usage element must be one of the following: Consumes Produces ConsumesProduces </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"> <xsd:enumeration value="Consumes"/> <xsd:enumeration value="Produces"/> <xsd:enumeration value="ConsumesProduces"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="message-destinationType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The message-destinationType specifies a message destination. The logical destination described by this element is mapped to a physical destination by the Deployer. The message destination element contains: - an optional description - an optional display-name - an optional icon - a message destination name which must be unique among message destination names within the same Deployment File. - an optional mapped name Example: <message-destination> <message-destination-name>CorporateStocks </message-destination-name> </message-destination> ]]> </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:group ref="javaee:descriptionGroup"/> <xsd:element name="message-destination-name" type="javaee:string"> <xsd:annotation> <xsd:documentation> The message-destination-name element specifies a name for a message destination. This name must be unique among the names of message destinations within the Deployment File. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="mapped-name" type="javaee:xsdStringType" minOccurs="0"> <xsd:annotation> <xsd:documentation> <![CDATA[ A product specific name that this message destination should be mapped to. Each message-destination-ref element that references this message destination will define a name in the namespace of the referencing component. (It's a name in the JNDI java:comp/env namespace.) Many application servers provide a way to map these local names to names of resources known to the application server. This mapped name is often a global JNDI name, but may be a name of any form. Each of the local names should be mapped to this same global name. Application servers are not required to support any particular form or type of mapped name, nor the ability to use mapped names. The mapped name is product-dependent and often installation-dependent. No use of a mapped name is portable. ]]> </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="param-valueType"> <xsd:annotation> <xsd:documentation> This type is a general type that can be used to declare parameter/value lists. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="param-name" type="javaee:string"> <xsd:annotation> <xsd:documentation> The param-name element contains the name of a parameter. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="param-value" type="javaee:xsdStringType"> <xsd:annotation> <xsd:documentation> The param-value element contains the value of a parameter. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="pathType"> <xsd:annotation> <xsd:documentation> The elements that use this type designate either a relative path or an absolute path starting with a "/". In elements that specify a pathname to a file within the same Deployment File, relative filenames (i.e., those not starting with "/") are considered relative to the root of the Deployment File's namespace. Absolute filenames (i.e., those starting with "/") also specify names in the root of the Deployment File's namespace. In general, relative names are preferred. The exception is .war files where absolute names are preferred for consistency with the Servlet API. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="persistence-context-refType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The persistence-context-ref element contains a declaration of Deployment Component's reference to a persistence context associated within a Deployment Component's environment. It consists of: - an optional description - the persistence context reference name - an optional persistence unit name. If not specified, the default persistence unit is assumed. - an optional specification as to whether the persistence context type is Transaction or Extended. If not specified, Transaction is assumed. - an optional list of persistence properties - optional injection targets Examples: <persistence-context-ref> <persistence-context-ref-name>myPersistenceContext </persistence-context-ref-name> </persistence-context-ref> <persistence-context-ref>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -