You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/11/16 12:46:56 UTC
svn commit: r1035598 - in /synapse/trunk/java/repository/schema:
event_source.xsd mediators/advanced/event.xsd mediators/mediators.xsd
Author: ruwan
Date: Tue Nov 16 11:46:55 2010
New Revision: 1035598
URL: http://svn.apache.org/viewvc?rev=1035598&view=rev
Log:
Fixing the event source schema and adding the event mediator schema
Added:
synapse/trunk/java/repository/schema/mediators/advanced/event.xsd
Modified:
synapse/trunk/java/repository/schema/event_source.xsd
synapse/trunk/java/repository/schema/mediators/mediators.xsd
Modified: synapse/trunk/java/repository/schema/event_source.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/event_source.xsd?rev=1035598&r1=1035597&r2=1035598&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/event_source.xsd (original)
+++ synapse/trunk/java/repository/schema/event_source.xsd Tue Nov 16 11:46:55 2010
@@ -22,6 +22,8 @@
targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+ <xs:include schemaLocation="misc/common.xsd"/>
+
<xs:element name="eventSource" type="EventSource">
<xs:annotation>
<xs:documentation source="description">
@@ -32,8 +34,24 @@
<xs:complexType name="EventSource">
<xs:annotation>
-
+ <xs:documentation>Event source element type</xs:documentation>
</xs:annotation>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="subscriptionManager" minOccurs="1" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence maxOccurs="unbounded">
+ <xs:element name="property" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>
\ No newline at end of file
Added: synapse/trunk/java/repository/schema/mediators/advanced/event.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/advanced/event.xsd?rev=1035598&view=auto
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/advanced/event.xsd (added)
+++ synapse/trunk/java/repository/schema/mediators/advanced/event.xsd Tue Nov 16 11:46:55 2010
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ 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.
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
+ xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
+ <xs:element name="eventPublisher">
+ <xs:annotation>
+ <xs:documentation source="description">
+ EventPublisher mediator to publish the current message as an event
+ to the given event source
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attribute name="eventSourceName" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Modified: synapse/trunk/java/repository/schema/mediators/mediators.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/mediators.xsd?rev=1035598&r1=1035597&r2=1035598&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/mediators.xsd (original)
+++ synapse/trunk/java/repository/schema/mediators/mediators.xsd Tue Nov 16 11:46:55 2010
@@ -41,6 +41,7 @@
<xs:include schemaLocation="advanced/rm_sequence.xsd"/>
<xs:include schemaLocation="advanced/db_mediators.xsd"/>
<xs:include schemaLocation="advanced/cache.xsd"/>
+ <xs:include schemaLocation="advanced/event.xsd"/>
<xs:include schemaLocation="extension/script.xsd"/>
<xs:include schemaLocation="extension/class.xsd"/>
<xs:include schemaLocation="extension/spring.xsd"/>
@@ -89,6 +90,7 @@
<xs:element ref="callout"/>
<xs:element ref="rewrite"/>
<xs:element ref="spring"/>
+ <xs:element ref="eventPublisher"/>
</xs:choice>
</xs:group>