blob: 33bd3bdaa7faa96d919391e77c29a38480fbcbf6 [file] [log] [blame]
Clement Escoffierf58887c2008-09-09 14:21:15 +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
Clement Escoffier546f0a32010-12-24 10:39:10 +00009
Clement Escoffierf58887c2008-09-09 14:21:15 +000010 http://www.apache.org/licenses/LICENSE-2.0
Clement Escoffier546f0a32010-12-24 10:39:10 +000011
Clement Escoffierf58887c2008-09-09 14:21:15 +000012 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>
Clement Escoffier546f0a32010-12-24 10:39:10 +000024 <xs:element name="temporal" type="TemporalServiceDependencyType"></xs:element>
25
Clement Escoffierf58887c2008-09-09 14:21:15 +000026
27 <xs:complexType name="TemporalServiceDependencyType">
28
Clement Escoffier189fcab2008-09-24 14:26:55 +000029 <xs:annotation>
30 <xs:documentation>Description of a temporal dependency.</xs:documentation>
31 </xs:annotation>
32 <xs:attribute name="field" type="xs:string" use="required">
33 <xs:annotation>
34 <xs:documentation>The implementation field supporting the dependency.</xs:documentation>
35 </xs:annotation></xs:attribute>
36 <xs:attribute name="filter" type="xs:string" use="optional">
37 <xs:annotation>
38 <xs:documentation>Filter use to discover matching filter.</xs:documentation></xs:annotation></xs:attribute>
Clement Escoffierf58887c2008-09-09 14:21:15 +000039 <xs:attribute name="timeout" type="xs:int" use="optional">
40 <xs:annotation>
Clement Escoffier189fcab2008-09-24 14:26:55 +000041 <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>
Clement Escoffierf58887c2008-09-09 14:21:15 +000042 </xs:annotation></xs:attribute>
43 <xs:attribute name="onTimeout" use="optional" type="xs:string">
44 <xs:annotation>
Clement Escoffier189fcab2008-09-24 14:26:55 +000045 <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>
Clement Escoffierf58887c2008-09-09 14:21:15 +000046 </xs:annotation>
47 </xs:attribute>
Clement Escoffier2a4d4e02008-12-22 15:50:27 +000048 <xs:attribute name="proxy" use="optional" type="xs:boolean">
49 <xs:annotation>
50 <xs:documentation>Enables or Disables the proxy injection</xs:documentation>
51 </xs:annotation>
52 </xs:attribute>
53 <xs:attribute name="specification" use="optional" type="xs:string">
54 <xs:annotation>
55 <xs:documentation>Specifies the looked service specification. This attribute is mandatory when injecting in a Collection</xs:documentation>
56 </xs:annotation>
57 </xs:attribute>
Clement Escoffierf58887c2008-09-09 14:21:15 +000058 </xs:complexType>
59</xs:schema>