<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<xsd:schema xmlns="http://www.bea.com/ns/wlevs/deployment"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:beans="http://www.springframework.org/schema/beans"
            targetNamespace="http://www.bea.com/ns/wlevs/deployment"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified">

    <xsd:import namespace="http://www.springframework.org/schema/beans"/>
    <xsd:element name="deployment" type="Tdeployment"/>

    <xsd:complexType name="Tdeployment">
        <xsd:annotation>
            <xsd:documentation><![CDATA[
	The deployment type. Deployments are OSGi bundles started automatically by the Spring-OSGi framework.
	Deployment declarations obey the usual rules for Spring beans and in particular must have a unique ID.
			]]></xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>

            <xsd:extension base="beans:identifiedType">

                <!-- xsd:attribute name="symbolic-name" type="xsd:string" use="optional"/-->
                <xsd:attribute name="depends-on" type="xsd:string" use="optional">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
	The names of the beans that this deployment bean depends on being initialized.
	The bean factory will guarantee that these beans get initialized
	before this bean.
				    ]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>

                <xsd:attribute name="location" type="xsd:string" use="optional">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
    URL that specifies the location of the bundle that is to be deployed.
    If a relative URL is specified then the location is relative the DOMAIN_DIR domain directory.
    For example, location="file:applications/simpleApp/simpleApp.jar" specifies that the bundle simpleApp.jar,
    located in the DOMAIN_DIR/applications/simpleApp directory, is to be deployed to WebLogic Event Server.
                    ]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="state" type="Tstate" use="optional">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
 	Specifies the state that the bundle should be in once it is deployed to WebLogic Event Server.
    The value of this attribute must be one of the following:

    start?Install and start the bundle so that it immediately begins taking client requests.
    install??Install the bundle, but do not start it.

    The default value of this attribute is start.
                    ]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="group-name" type="xsd:string" use="optional">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
 	Specifies the name of the cluster group to which the application is deployed.
                    ]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <!--xsd:attribute name="start-level" type="xsd:int" use="optional" default="0"/-->
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:simpleType name="Tstate">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="start"/>
            <xsd:enumeration value="install"/>
            <xsd:enumeration value="update"/>
        </xsd:restriction>
    </xsd:simpleType>
</xsd:schema>
