You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/02/17 12:32:26 UTC

[20/50] [abbrv] incubator-taverna-engine git commit: taverna-activity-test-utils/

http://git-wip-us.apache.org/repos/asf/incubator-taverna-engine/blob/2221882f/taverna-activity-test-utils/src/main/resources/context-parts/referenceservice.xml
----------------------------------------------------------------------
diff --git a/taverna-activity-test-utils/src/main/resources/context-parts/referenceservice.xml b/taverna-activity-test-utils/src/main/resources/context-parts/referenceservice.xml
new file mode 100644
index 0000000..3a37d1b
--- /dev/null
+++ b/taverna-activity-test-utils/src/main/resources/context-parts/referenceservice.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Context providing a full ReferenceService backed by in-memory Dao implementations -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:raven="http://taverna.sf.net/schema/artifact-support"
+	xsi:schemaLocation="http://www.springframework.org/schema/beans 
+	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
+	http://taverna.sf.net/schema/artifact-support 
+	http://taverna.sf.net/schema/artifact-support/artifact-support.xsd">
+
+	<!-- Reference service bean -->
+	<bean id="t2reference.service.referenceService"
+		raven:artifact="net.sf.taverna.t2.core:reference-impl:2.0.1-SNAPSHOT"
+		raven:repository="raven.repository"
+		class="net.sf.taverna.t2.reference.impl.ReferenceServiceImpl">
+		<property name="referenceSetService">
+			<ref bean="t2reference.service.referenceSetService" />
+		</property>
+		<property name="listService">
+			<ref bean="t2reference.service.listService" />
+		</property>
+		<property name="errorDocumentService">
+			<ref bean="t2reference.service.errorDocumentService" />
+		</property>
+		<property name="converterRegistry">
+			<bean id="converterRegistry"
+				class="net.sf.taverna.platform.spring.InstanceRegistryFactoryBean">
+				<property name="spiRegistry">
+					<bean
+						class="net.sf.taverna.platform.spring.SpiRegistryFactoryBean">
+						<property name="repository">
+							<ref bean="raven.repository" />
+						</property>
+						<property name="spiClassName"
+							value="net.sf.taverna.t2.reference.ValueToReferenceConverterSPI" />
+					</bean>
+				</property>
+			</bean>
+		</property>
+		<property name="valueBuilderRegistry">
+			<bean
+				class="net.sf.taverna.platform.spring.InstanceRegistryFactoryBean">
+				<property name="spiRegistry">
+					<bean
+						class="net.sf.taverna.platform.spring.SpiRegistryFactoryBean">
+						<property name="repository">
+							<ref bean="raven.repository" />
+						</property>
+						<property name="spiClassName"
+							value="net.sf.taverna.t2.reference.StreamToValueConverterSPI" />
+					</bean>
+				</property>
+			</bean>
+		</property>
+	</bean>
+
+</beans>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-engine/blob/2221882f/taverna-activity-test-utils/src/main/resources/inMemoryActivityTestsContext.xml
----------------------------------------------------------------------
diff --git a/taverna-activity-test-utils/src/main/resources/inMemoryActivityTestsContext.xml b/taverna-activity-test-utils/src/main/resources/inMemoryActivityTestsContext.xml
new file mode 100644
index 0000000..5268c9d
--- /dev/null
+++ b/taverna-activity-test-utils/src/main/resources/inMemoryActivityTestsContext.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Context providing a full ReferenceService -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:raven="http://taverna.sf.net/schema/artifact-support"
+	xsi:schemaLocation="http://www.springframework.org/schema/beans 
+	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
+	http://taverna.sf.net/schema/artifact-support 
+	http://taverna.sf.net/schema/artifact-support/artifact-support.xsd">
+
+	<import resource="context-parts/raven_local.xml" />
+	<!--
+	<import resource="context-parts/hibernateprops_derby.xml" />
+	<import resource="context-parts/dao_hibernate.xml" />
+	-->
+	<import resource="context-parts/dao_inmemory.xml" />
+	<import resource="context-parts/componentservices.xml" />
+	<import resource="context-parts/referenceservice.xml" />
+
+	<!-- Load core extensions, needed for String to reference support -->
+	<bean
+		raven:artifact="net.sf.taverna.t2.core:reference-core-extensions:2.0.1-SNAPSHOT"
+		raven:repository="raven.repository"
+		class="net.sf.taverna.t2.reference.impl.core.LoadCoreExtensions">
+	</bean>
+
+
+</beans>