blob: 3f2d47cfa5b4d8ef957e61fcf8a1dcf222b6ccc1 [file] [log] [blame]
Clement Escoffier6c546352008-11-10 09:49:32 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19<xs:schema targetNamespace="org.apache.felix.ipojo.handler.temporal"
20 xmlns="org.apache.felix.ipojo.handler.temporal"
21 xmlns:xs="http://www.w3.org/2001/XMLSchema"
22 elementFormDefault="qualified">
23 <xs:element name="requires" type="TemporalServiceDependencyType"></xs:element>
24
25 <xs:complexType name="TemporalServiceDependencyType">
26
27 <xs:annotation>
28 <xs:documentation>Description of a temporal dependency.</xs:documentation>
29 </xs:annotation>
30 <xs:attribute name="field" type="xs:string" use="required">
31 <xs:annotation>
32 <xs:documentation>The implementation field supporting the dependency.</xs:documentation>
33 </xs:annotation></xs:attribute>
34 <xs:attribute name="filter" type="xs:string" use="optional">
35 <xs:annotation>
36 <xs:documentation>Filter use to discover matching filter.</xs:documentation></xs:annotation></xs:attribute>
37 <xs:attribute name="timeout" type="xs:int" use="optional">
38 <xs:annotation>
39 <xs:documentation>Specifies the timeout after which the onTimeout policy is executed. The value is the time in ms to wait. -1 is used to indicate an infinite wait.</xs:documentation>
40 </xs:annotation></xs:attribute>
41 <xs:attribute name="onTimeout" use="optional" type="xs:string">
42 <xs:annotation>
43 <xs:documentation>Specifies the onTimeout policy. This determines the object to inject when the service stills unavailable when the timeout expires. Several values are supported: 'nullable' means that a Nullable object will be injected, 'empty-array' injects an empty array (only for aggregate dependency), 'null' injects Null, any other value are interpreted as the default implementation class to use. If the onTimetout attribute is not specified, a RuntimeException is thrown when the timeout is reached.</xs:documentation>
44 </xs:annotation>
45 </xs:attribute>
Clement Escoffier8368d922008-12-22 17:30:12 +000046 <xs:attribute name="proxy" use="optional" type="xs:boolean">
Clement Escoffier85da1092008-12-22 15:50:27 +000047 <xs:annotation>
48 <xs:documentation>Enables or Disables the proxy injection</xs:documentation>
49 </xs:annotation>
50 </xs:attribute>
51 <xs:attribute name="specification" use="optional" type="xs:string">
52 <xs:annotation>
53 <xs:documentation>Specifies the looked service specification. This attribute is mandatory when injecting in a Collection</xs:documentation>
54 </xs:annotation>
55 </xs:attribute>
Clement Escoffier6c546352008-11-10 09:49:32 +000056 </xs:complexType>
57</xs:schema>