Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / 3dparty_src / spring / schema / spring-jee-2.5.xsd
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3 <xsd:schema xmlns="http://www.springframework.org/schema/jee"
4                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5                 xmlns:beans="http://www.springframework.org/schema/beans"
6                 xmlns:tool="http://www.springframework.org/schema/tool"
7                 targetNamespace="http://www.springframework.org/schema/jee"
8                 elementFormDefault="qualified"
9                 attributeFormDefault="unqualified">
10
11         <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"/>
12         <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-2.5.xsd"/>
13
14         <xsd:annotation>
15                 <xsd:documentation><![CDATA[
16         Defines configuration elements for access to traditional Java EE components
17         such as JNDI resources and EJB session beans.
18                 ]]></xsd:documentation>
19         </xsd:annotation>
20
21         <xsd:element name="jndi-lookup">
22                 <xsd:annotation>
23                         <xsd:documentation source="java:org.springframework.jndi.JndiObjectFactoryBean"><![CDATA[
24         Exposes an object reference via a JNDI lookup.
25                         ]]></xsd:documentation>
26                 </xsd:annotation>
27                 <xsd:complexType>
28                         <xsd:complexContent>
29                                 <xsd:extension base="jndiLocatingType">
30                                         <xsd:attribute name="cache" type="xsd:boolean" default="true">
31                                                 <xsd:annotation>
32                                                         <xsd:documentation><![CDATA[
33         Controls whether the object returned from the JNDI lookup is cached
34         after the first lookup.
35                                                         ]]></xsd:documentation>
36                                                 </xsd:annotation>
37                                         </xsd:attribute>
38                                         <xsd:attribute name="expected-type" type="xsd:string">
39                                                 <xsd:annotation>
40                                                         <xsd:documentation source="java:java.lang.Class"><![CDATA[
41         The type that the located JNDI object is supposed to be assignable
42         to, if indeed any.
43                                                         ]]></xsd:documentation>
44                                                 </xsd:annotation>
45                                         </xsd:attribute>
46                                         <xsd:attribute name="lookup-on-startup" type="xsd:boolean" default="true">
47                                                 <xsd:annotation>
48                                                         <xsd:documentation><![CDATA[
49         Controls whether the JNDI lookup is performed immediately on startup
50         (if true, the default), or on first access (if false).
51                                                         ]]></xsd:documentation>
52                                                 </xsd:annotation>
53                                         </xsd:attribute>
54                                         <xsd:attribute name="proxy-interface" type="xsd:string">
55                                                 <xsd:annotation>
56                                                         <xsd:documentation source="java:java.lang.Class"><![CDATA[
57         The proxy interface to use for the JNDI object.
58         
59         Needs to be specified because the actual JNDI object type is not
60         known in advance in case of a lazy lookup.
61         
62         Typically used in conjunction with "lookupOnStartup"=false and/or
63         "cache"=false.
64                                                         ]]></xsd:documentation>
65                                                         <xsd:appinfo>
66                                                                 <tool:annotation>
67                                                                         <tool:expected-type type="java.lang.Class"/>
68                                                                 </tool:annotation>
69                                                         </xsd:appinfo>
70                                                 </xsd:annotation>
71                                         </xsd:attribute>
72                                         <xsd:attribute name="default-value" type="xsd:string">
73                                                 <xsd:annotation>
74                                                         <xsd:documentation><![CDATA[
75         Specify a default literal value to fall back to if the JNDI lookup fails.
76         This is typically used for literal values in scenarios where the JNDI environment
77         might define specific config settings but those are not required to be present.
78
79         Default is none. Note: This is only supported for lookup on startup.
80                                                         ]]></xsd:documentation>
81                                                 </xsd:annotation>
82                                         </xsd:attribute>
83                                         <xsd:attribute name="default-ref" type="xsd:string">
84                                                 <xsd:annotation>
85                                                         <xsd:documentation><![CDATA[
86         Specify a default bean reference to fall back to if the JNDI lookup fails.
87         This might for example point to a local fallback DataSource.
88
89         Default is none. Note: This is only supported for lookup on startup.
90                                                         ]]></xsd:documentation>
91                                                 </xsd:annotation>
92                                         </xsd:attribute>
93                                 </xsd:extension>
94                         </xsd:complexContent>
95                 </xsd:complexType>
96         </xsd:element>
97
98         <xsd:element name="local-slsb" type="ejbType">
99                 <xsd:annotation>
100                         <xsd:documentation source="java:org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean"><![CDATA[
101         Exposes a reference to a local EJB Stateless SessionBean.
102                         ]]></xsd:documentation>
103                 </xsd:annotation>
104         </xsd:element>
105
106         <xsd:element name="remote-slsb">
107                 <xsd:annotation>
108                         <xsd:documentation source="java:org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"><![CDATA[
109         Exposes a reference to a remote EJB Stateless SessionBean.
110                         ]]></xsd:documentation>
111                 </xsd:annotation>
112                 <xsd:complexType>
113                         <xsd:complexContent>
114                                 <xsd:extension base="ejbType">
115                                         <xsd:attribute name="home-interface" type="xsd:string">
116                                                 <xsd:annotation>
117                                                         <xsd:documentation source="java:java.lang.Class"><![CDATA[
118         The home interface that will be narrowed to before performing
119         the parameterless SLSB create() call that returns the actual
120         SLSB proxy.
121                                                         ]]></xsd:documentation>
122                                                 </xsd:annotation>
123                                         </xsd:attribute>
124                                         <xsd:attribute name="refresh-home-on-connect-failure" type="xsd:boolean" default="false">
125                                                 <xsd:annotation>
126                                                         <xsd:documentation><![CDATA[
127         Controls whether to refresh the EJB home on connect failure.
128         
129         Can be turned on to allow for hot restart of the EJB server.
130         If a cached EJB home throws an RMI exception that indicates a
131         remote connect failure, a fresh home will be fetched and the
132         invocation will be retried.
133                                                         ]]></xsd:documentation>
134                                                 </xsd:annotation>
135                                         </xsd:attribute>
136                                         <xsd:attribute name="cache-session-bean" type="xsd:boolean" default="false">
137                                                 <xsd:annotation>
138                                                         <xsd:documentation><![CDATA[
139         Controls whether to cache the actual session bean object.
140
141         Off by default for standard EJB compliance. Turn this flag
142         on to optimize session bean access for servers that are
143         known to allow for caching the actual session bean object.
144                                                         ]]></xsd:documentation>
145                                                 </xsd:annotation>
146                                         </xsd:attribute>
147                                 </xsd:extension>
148                         </xsd:complexContent>
149                 </xsd:complexType>
150         </xsd:element>
151
152         <!-- base types -->
153         <xsd:complexType name="jndiLocatingType" abstract="true">
154                 <xsd:complexContent>
155                         <xsd:extension base="beans:identifiedType">
156                                 <xsd:sequence>
157                                         <xsd:element name="environment" minOccurs="0" maxOccurs="1">
158                                                 <xsd:annotation>
159                                                         <xsd:documentation><![CDATA[
160         The newline-separated, key-value pairs for the JNDI environment
161         (in standard Properties format, namely 'key=value' pairs)
162                                                  ]]></xsd:documentation>
163                                                 </xsd:annotation>
164                                                 <xsd:simpleType>
165                                                         <xsd:restriction base="xsd:string"/>
166                                                 </xsd:simpleType>
167                                         </xsd:element>
168                                 </xsd:sequence>
169                                 <xsd:attribute name="environment-ref" type="environmentRefType">
170                                         <xsd:annotation>
171                                                 <xsd:documentation><![CDATA[
172         A reference to JNDI environment properties, indicating the name of a
173         shared bean of type [java.util.Properties}.
174                                                 ]]></xsd:documentation>
175                                         </xsd:annotation>
176                                 </xsd:attribute>
177                                 <xsd:attribute name="jndi-name" type="xsd:string" use="required">
178                                         <xsd:annotation>
179                                                 <xsd:documentation><![CDATA[
180         The JNDI name to look up. This may be a fully-qualified JNDI path
181         or a local Java EE environment naming context path in which case the
182         prefix "java:comp/env/" will be prepended if applicable.
183                                                 ]]></xsd:documentation>
184                                         </xsd:annotation>
185                                 </xsd:attribute>
186                                 <xsd:attribute name="resource-ref" type="xsd:boolean" default="true">
187                                         <xsd:annotation>
188                                                 <xsd:documentation><![CDATA[
189         Controls whether the lookup occurs in a Java EE container, i.e. if the
190         prefix "java:comp/env/" needs to be added if the JNDI name doesn't
191         already contain it. Default is "true" (since Spring 2.5).
192                                                 ]]></xsd:documentation>
193                                         </xsd:annotation>
194                                 </xsd:attribute>
195                                 <xsd:attribute name="expose-access-context" type="xsd:boolean" default="false">
196                                         <xsd:annotation>
197                                                 <xsd:documentation><![CDATA[
198         Set whether to expose the JNDI environment context for all access to the target
199         EJB, i.e. for all method invocations on the exposed object reference.
200         Default is "false", i.e. to only expose the JNDI context for object lookup.
201
202         Switch this flag to "true" in order to expose the JNDI environment (including
203         the authorization context) for each EJB invocation, as needed by WebLogic
204         for EJBs with authorization requirements.
205                                                 ]]></xsd:documentation>
206                                         </xsd:annotation>
207                                 </xsd:attribute>
208                         </xsd:extension>
209                 </xsd:complexContent>
210         </xsd:complexType>
211
212         <xsd:complexType name="ejbType">
213                 <xsd:complexContent>
214                         <xsd:extension base="jndiLocatingType">
215                                 <xsd:attribute name="lookup-home-on-startup" type="xsd:boolean" default="true">
216                                         <xsd:annotation>
217                                                 <xsd:documentation><![CDATA[
218         Controls whether the lookup of the EJB home object is performed
219         immediately on startup (if true, the default), or on first access
220         (if false).
221                                                 ]]></xsd:documentation>
222                                         </xsd:annotation>
223                                 </xsd:attribute>
224                                 <xsd:attribute name="cache-home" type="xsd:boolean" default="true">
225                                         <xsd:annotation>
226                                                 <xsd:documentation><![CDATA[
227         Controls whether the EJB home object is cached once it has been located.
228         On by default; turn this flag off to always reobtain fresh home objects.
229                                                 ]]></xsd:documentation>
230                                         </xsd:annotation>
231                                 </xsd:attribute>
232                                 <xsd:attribute name="business-interface" type="xsd:string" use="required">
233                                         <xsd:annotation>
234                                                 <xsd:documentation source="java:java.lang.Class"><![CDATA[
235         The business interface of the EJB being proxied.
236                                                 ]]></xsd:documentation>
237                                         </xsd:annotation>
238                                 </xsd:attribute>
239                         </xsd:extension>
240                 </xsd:complexContent>
241         </xsd:complexType>
242
243         <xsd:simpleType name="environmentRefType">
244                 <xsd:annotation>
245                         <xsd:appinfo>
246                                 <tool:annotation kind="ref">
247                                         <tool:expected-type type="java.util.Properties"/>
248                                 </tool:annotation>
249                         </xsd:appinfo>
250                 </xsd:annotation>
251                 <xsd:union memberTypes="xsd:string"/>
252         </xsd:simpleType>
253
254 </xsd:schema>