Clement Escoffier | f58887c | 2008-09-09 14:21:15 +0000 | [diff] [blame^] | 1 | <!-- |
| 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:attribute name="field" type="xs:string" use="required"></xs:attribute> |
| 28 | <xs:attribute name="filter" type="xs:string" use="optional"></xs:attribute> |
| 29 | <xs:attribute name="timeout" type="xs:int" use="optional"> |
| 30 | <xs:annotation> |
| 31 | <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> |
| 32 | </xs:annotation></xs:attribute> |
| 33 | <xs:attribute name="onTimeout" use="optional" type="xs:string"> |
| 34 | <xs:annotation> |
| 35 | <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> |
| 36 | </xs:annotation> |
| 37 | </xs:attribute> |
| 38 | </xs:complexType> |
| 39 | </xs:schema> |