| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- $Rev: 1153797 $ $Date: 2011-08-04 12:09:44 +0300 (Thu, 04 Aug 2011) $ --> |
| |
| <xsd:schema xmlns="http://www.openejb.org/Service/Configuration" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| targetNamespace="http://www.openejb.org/Service/Configuration"> |
| |
| <!-- |
| --> |
| <xsd:element name="ServiceJar"> |
| <xsd:complexType> |
| <xsd:sequence> |
| <xsd:element ref="ServiceProvider" maxOccurs="unbounded"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| </xsd:element> |
| |
| <!-- |
| |
| --> |
| <xsd:element name="ServiceProvider"> |
| <xsd:complexType> |
| <xsd:simpleContent> |
| <xsd:extension base="xsd:string"> |
| <xsd:attribute name="id" type="xsd:string" use="required"/> |
| <xsd:attribute name="service" type="ServiceTypes" use="required"/> |
| <xsd:attribute name="types" type="xsd:string" use="optional"/> |
| <xsd:attribute name="display-name" type="xsd:string" use="optional"/> |
| <xsd:attribute name="description" type="xsd:string" use="optional"/> |
| <xsd:attribute name="class-name" type="ClassName"/> |
| <xsd:attribute name="constructor" type="xsd:string" use="optional"/> |
| <xsd:attribute name="factory-name" type="xsd:string" use="optional"/> |
| </xsd:extension> |
| </xsd:simpleContent> |
| </xsd:complexType> |
| </xsd:element> |
| |
| <!-- |
| ############################################# |
| # # |
| # Data types that validate the input # |
| # # |
| ############################################# |
| --> |
| |
| <!-- Class name --> |
| <xsd:simpleType name="ClassName"> |
| <xsd:restriction base="xsd:string"> |
| <xsd:pattern value="[a-zA-Z0-9_$.]+"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <!-- ServiceTypes --> |
| <xsd:simpleType name="ServiceTypes"> |
| <xsd:restriction base="xsd:string"> |
| <xsd:pattern value="Container|Proxy|Security|Transaction|Resource|Connector|ConnectionManager|JNDI"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| </xsd:schema> |