Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.kernel.deployer/src/test/resources/scoping')
-rw-r--r--org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/complexService.xml18
-rw-r--r--org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/simpleService.xml12
2 files changed, 30 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/complexService.xml b/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/complexService.xml
new file mode 100644
index 00000000..9afe0b45
--- /dev/null
+++ b/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/complexService.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+ <osgi:service ref="service">
+ <osgi:interfaces>
+ <value>java.io.Serializable</value>
+ <value>java.lang.Appendable</value>
+ </osgi:interfaces>
+ <osgi:service-properties>
+ <entry key="foo" value="bar"/>
+ <entry key="boo" value="baz"/>
+ </osgi:service-properties>
+ </osgi:service>
+ <bean id="service" class="java.lang.StringBuffer" />
+</beans>
diff --git a/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/simpleService.xml b/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/simpleService.xml
new file mode 100644
index 00000000..74aa011a
--- /dev/null
+++ b/org.eclipse.virgo.kernel.deployer/src/test/resources/scoping/simpleService.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+
+ <osgi:service ref="service" interface="java.io.Serializable" />
+
+ <bean id="service" class="java.lang.String"/>
+
+</beans>

Back to the top