hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r355154 - /jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/
Date Thu, 08 Dec 2005 17:42:54 GMT
Author: hlship
Date: Thu Dec  8 09:42:35 2005
New Revision: 355154

URL: http://svn.apache.org/viewcvs?rev=355154&view=rev
Log:
Refactor into Maven 2 layout

Added:
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadAttribute.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadConfigurationId.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElement.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElementAttributeKey.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadModuleId.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadVersion.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ContributionIf.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/DuplicateSchemas.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedConfigSchema.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedParametersSchema.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/GenericModule.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ImplementationIf.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/InterfaceNameQualifiedToModulePackage.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/MissingAttribute.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ModuleWithPackage.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/NoInterface.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateConfigurationPoint.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateSchema.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateServicePoint.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushAttributeRule.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushContentRule.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SchemaDescription.xml
    jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SetPropertyRule.xml

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadAttribute.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadAttribute.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadAttribute.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadAttribute.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+	Description of the Module.
+	<schema id="Bad" bad-attribute="bad">
+		<element name="foo1">
+			Identifies a foo that will be fnorded.
+		</element>
+	</schema>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadConfigurationId.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadConfigurationId.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadConfigurationId.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadConfigurationId.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+
+  <configuration-point id="foo.bar" occurs="1..n"/>
+
+</module>
\ No newline at end of file

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElement.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElement.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElement.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElement.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+	Description of the Module.
+	<schema id="Fool">
+		<element name="foo1">
+			Identifies a foo that will be fnorded.
+			<attribute name="bar" required="true"/>
+			<attribute name="biff">
+				Optional pointer to the biff glob thingey.
+			</attribute>
+			<rules>
+				<create-object class="package.Foo1"/>
+				<read-attribute property="bazomatic" attribute="bar"/>
+				<read-content property="description"/>
+				<invoke-parent method="addElement"/>
+			</rules>
+		</element>
+		<element name="foo2">
+			The glomp that will be used during the fnord.
+			<attribute name="zip"/>
+			<attribute name="fred"/>
+			<rules>
+				<create-object class="package.Foo2"/>
+				<read-attribute property="zipId" attribute="zip"/>
+				<read-attribute property="fred" attribute="fred"/>
+				<set-parent property="container"/>
+				<invoke-parent method="addChild"/>
+			</rules>
+			<element name="foo3">
+				Optional element used to identify a glup that will be
+					involed in the fnordification.
+				<attribute name="gnip"/>
+				<rules>
+					<create-object class="package.Foo3"/>
+					<read-attribute property="gnipId" attribute="gnip"/>
+					<invoke-parent method="addGnipHolder"/>
+				</rules>
+			</element>
+		</element>
+	</schema>
+	<configuration-point id="MyExtensionPoint" occurs="1..n" schema-id="Fool">
+		Description of MyExtensionPoint.
+	</configuration-point>
+	<contribution configuration-id="MyExtensionPoint">
+		<foo1 bar="baz">foo1 content</foo1>
+		<foo2 zip="zap" fred="barney">
+			<foo3 gnip="gnop"/>
+		</foo2>
+	</contribution>
+	<service-point id="MyService1" interface="package.MyService">
+		Description of MyService1.
+		<create-instance class="package.impl.MyServiceImpl"/>
+		<interceptor service-id="MyInterceptor"/>
+		<interceptor service-id="OtherInterceptor"/>
+	</service-point>
+	<implementation service-id="othermodule.OtherService">
+		<interceptor service-id="MyInterceptor"/>
+	</implementation>
+	<service-point id="MyServiceFactory" parameters-schema-id="Parameters"
+		interface="org.apache.hivemind.ServiceImplementationFactory"/>
+	<schema id="Parameters">
+		<element name="myParameter">
+			<rules>
+				<create-object class="package.impl.MyParameterHolder"/>
+				<read-content property="parameterValue"/>
+				<invoke-parent method="addElement"/>
+			</rules>
+			<bad-element/>
+		</element>
+	</schema>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElementAttributeKey.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElementAttributeKey.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElementAttributeKey.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadElementAttributeKey.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+	<schema id="Bad">
+		<element name="foo" key-attribute="bad"/>
+	</schema>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadModuleId.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadModuleId.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadModuleId.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadModuleId.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="big bad" version="1.0.0"/>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadVersion.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadVersion.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadVersion.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/BadVersion.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="bad.version" version="1.0.alpha"/>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ContributionIf.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ContributionIf.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ContributionIf.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ContributionIf.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+
+  <contribution configuration-id="foo.bar.Baz" if="class foo.bar.Blat">
+    <zip zap="zoom"/>
+  </contribution>
+
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/DuplicateSchemas.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/DuplicateSchemas.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/DuplicateSchemas.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/DuplicateSchemas.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+
+	<schema id="Parameters">
+		<element name="aParameter"/>
+	</schema>
+
+	<service-point id="MyServiceFactory"
+		interface="org.apache.hivemind.ServiceImplementationFactory"
+		parameters-schema-id="Parameters">
+		<parameters-schema>
+			<element name="myParameter"/>
+		</parameters-schema>
+	</service-point>
+
+	<configuration-point id="MyConfiguration"
+		schema-id="Parameters">
+		<schema>
+			<element name="myParameter"/>
+		</schema>
+	</configuration-point>
+		
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedConfigSchema.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedConfigSchema.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedConfigSchema.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedConfigSchema.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <configuration-point id="MyConfiguration">
+        <schema>
+            <element name="foo"/>
+        </schema>
+    </configuration-point>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedParametersSchema.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedParametersSchema.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedParametersSchema.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/EmbeddedParametersSchema.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <service-point id="MyService" interface="foo.bar.Baz">
+        <parameters-schema>
+            <element name="foo"/>
+        </parameters-schema>
+    </service-point>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/GenericModule.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/GenericModule.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/GenericModule.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/GenericModule.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+	Description of the Module.
+	<dependency module-id="my.module" version="1.0.0"/>
+	<configuration-point id="MyExtensionPoint" occurs="1..n" schema-id="Fool">
+		Description of MyExtensionPoint.
+	</configuration-point>
+	<schema id="Fool">
+		<element name="foo1">
+			Identifies a foo that will be fnorded.
+			<attribute name="bar" required="true"/>
+			<attribute name="biff">
+				Optional pointer to the biff glob thingey.
+			</attribute>
+			<rules>
+				<create-object class="package.Foo1"/>
+				<read-attribute property="bazomatic" attribute="bar"/>
+				<read-content property="description"/>
+				<set-module property="module"/>
+				<invoke-parent method="addElement"/>
+			</rules>
+		</element>
+		<element name="foo2">
+			The glomp that will be used during the fnord.
+			<attribute name="zip"/>
+			<attribute name="fred"/>
+			<rules>
+				<create-object class="package.Foo2"/>
+				<read-attribute property="zipId" attribute="zip"/>
+				<read-attribute property="fred" attribute="fred"/>
+				<set-parent property="container"/>
+				<invoke-parent method="addChild"/>
+			</rules>
+			<element name="foo3">
+				Optional element used to identify a glup that will be
+					involed in the fnordification.
+				<attribute name="gnip"/>
+				<rules>
+					<create-object class="package.Foo3"/>
+					<read-attribute property="gnipId" attribute="gnip"/>
+					<invoke-parent method="addGnipHolder"/>
+				</rules>
+			</element>
+		</element>
+	</schema>
+	<contribution configuration-id="MyExtensionPoint">
+		<foo1 bar="baz">foo1 content</foo1>
+		<foo2 zip="zap" fred="barney">
+			<foo3 gnip="gnop"/>
+		</foo2>
+	</contribution>
+	<service-point id="MyService1" interface="package.MyService">
+		Description of MyService1.
+		<create-instance class="package.impl.MyServiceImpl"/>
+		<interceptor service-id="MyInterceptor" before="OtherInterceptor" name="MyInterceptorName"/>
+		<interceptor service-id="OtherInterceptor" after="MyInterceptorName"/>
+	</service-point>
+	<implementation service-id="othermodule.OtherService">
+		<interceptor service-id="MyInterceptor" />
+	</implementation>
+	<service-point id="MyServiceFactory"
+		interface="org.apache.hivemind.ServiceImplementationFactory"
+		parameters-schema-id="Parameters"/>
+	<schema id="Parameters">
+		<element name="myParameter">
+			<rules>
+				<create-object class="package.impl.MyParameterHolder"/>
+				<read-content property="parameterValue"/>
+				<invoke-parent method="addElement"/>
+			</rules>
+		</element>
+	</schema>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ImplementationIf.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ImplementationIf.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ImplementationIf.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ImplementationIf.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+
+  <implementation service-id="foo.bar.Baz" if="class foo.bar.Blat">
+    <interceptor service-id="hivemind.LoggingInterceptor"/>
+  </implementation>
+
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/InterfaceNameQualifiedToModulePackage.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/InterfaceNameQualifiedToModulePackage.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/InterfaceNameQualifiedToModulePackage.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/InterfaceNameQualifiedToModulePackage.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="module.id" package="my.package" version="1.0.0">
+  
+  <service-point id="Fred" interface="MyServiceInterface"/>
+  
+</module>
\ No newline at end of file

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/MissingAttribute.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/MissingAttribute.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/MissingAttribute.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/MissingAttribute.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+	Description of the Module.
+	<configuration-point id="MyExtensionPoint" occurs="1..n" schema-id="Fool">
+		Description of MyExtensionPoint.
+	</configuration-point>
+	<schema id="Fool">
+		<!-- should have name attribute -->
+		<element>
+			Identifies a foo that will be fnorded.
+			<attribute name="bar" required="true"/>
+			<attribute name="biff">
+				Optional pointer to the biff glob thingey.
+			</attribute>
+			<rules>
+				<create-object class="package.Foo1"/>
+				<read-attribute property="bazomatic" attribute="bar"/>
+				<read-content property="description"/>
+				<invoke-parent method="addElement"/>
+			</rules>
+		</element>
+		<element name="foo2">
+			The glomp that will be used during the fnord.
+			<attribute name="zip"/>
+			<attribute name="fred"/>
+			<rules>
+				<create-object class="package.Foo2"/>
+				<read-attribute property="zipId" attribute="zip"/>
+				<read-attribute property="fred" attribute="fred"/>
+				<set-parent property="container"/>
+				<invoke-parent method="addChild"/>
+			</rules>
+			<element name="foo3">
+				Optional element used to identify a glup that will be
+					involed in the fnordification.
+				<attribute name="gnip"/>
+				<rules>
+					<create-object class="package.Foo3"/>
+					<read-attribute property="gnipId" attribute="gnip"/>
+					<invoke-parent method="addGnipHolder"/>
+				</rules>
+			</element>
+		</element>
+	</schema>
+	<contribution configuration-id="MyExtensionPoint">
+		<foo1 bar="baz">foo1 content</foo1>
+		<foo2 zip="zap" fred="barney">
+			<foo3 gnip="gnop"/>
+		</foo2>
+	</contribution>
+	<service-point id="MyService1" interface="package.MyService">
+		Description of MyService1.
+		<create-instance class="package.impl.MyServiceImpl"/>
+		<interceptor service-id="MyInterceptor" order="1000"/>
+		<interceptor service-id="OtherInterceptor"/>
+	</service-point>
+	<implementation service-id="othermodule.OtherService">
+		<interceptor service-id="MyInterceptor"/>
+	</implementation>
+	<service-point id="MyServiceFactory"
+		interface="org.apache.hivemind.ServiceImplementationFactory"/>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ModuleWithPackage.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ModuleWithPackage.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ModuleWithPackage.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/ModuleWithPackage.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="my.module" package="my.package" version="1.1.0"/>
\ No newline at end of file

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/NoInterface.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/NoInterface.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/NoInterface.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/NoInterface.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test" version="1.1.0">
+  
+  <service-point id="NoInterface"/>
+  
+</module>
\ No newline at end of file

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateConfigurationPoint.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateConfigurationPoint.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateConfigurationPoint.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateConfigurationPoint.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+  <configuration-point id="Private" visibility="private"/>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateSchema.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateSchema.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateSchema.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateSchema.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+  <schema id="PrivateSchema" visibility="private">
+    <element name="foo"/>
+  </schema>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateServicePoint.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateServicePoint.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateServicePoint.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PrivateServicePoint.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+  <service-point id="Private" visibility="private" interface="java.lang.Runnable"/>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushAttributeRule.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushAttributeRule.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushAttributeRule.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushAttributeRule.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <configuration-point id="Config">
+        <schema>
+            <element name="frankfurt">
+                <rules>
+                    <push-attribute attribute="foo"/>
+                </rules>
+            </element>
+        </schema>
+    </configuration-point>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushContentRule.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushContentRule.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushContentRule.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/PushContentRule.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <configuration-point id="Config">
+        <schema>
+            <element name="frankfurt">
+                <rules>
+                    <push-content/>
+                </rules>
+            </element>
+        </schema>
+    </configuration-point>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SchemaDescription.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SchemaDescription.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SchemaDescription.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SchemaDescription.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <configuration-point id="PointWithDescription">The description is allowed, but
ignored.</configuration-point>
+</module>

Added: jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SetPropertyRule.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SetPropertyRule.xml?rev=355154&view=auto
==============================================================================
--- jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SetPropertyRule.xml
(added)
+++ jakarta/hivemind/branches/maven2-dec12-2005/framework/src/test/resources/hivemind/test/parse/SetPropertyRule.xml
Thu Dec  8 09:42:35 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed 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.
+-->
+
+<module id="hivemind.test.parse" version="1.0.0">
+    <configuration-point id="Config">
+        <schema>
+            <element name="frankfurt">
+                <rules>
+                    <set-property property="foo" value="bar"/>
+                </rules>
+            </element>
+        </schema>
+    </configuration-point>
+</module>



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message