Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27')
-rwxr-xr-xbundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/META-INF/MANIFEST.MF5
-rwxr-xr-xbundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/OSGI-INF/test1.xml14
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/org/eclipse/equinox/ds/tests/tb27/impl/TestService.java19
3 files changed, 38 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/META-INF/MANIFEST.MF
new file mode 100755
index 00000000..6b98fa56
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Bundle-SymbolicName: org.eclipse.equinox.ds.tests.tb27
+Require-Capability: osgi.extender;
+ filter:="(&(osgi.extender=osgi.component)(version>=1.3)(!(version>=2.0)))"
+Service-Component: OSGI-INF/*.xml
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/OSGI-INF/test1.xml b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/OSGI-INF/test1.xml
new file mode 100755
index 00000000..58e44244
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/OSGI-INF/test1.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+ <scr:component
+ name="test1"
+ enabled="true"
+ immediate="true"
+ xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0">
+ <implementation class="org.eclipse.equinox.ds.tests.tb27.impl.TestService"/>
+ <service>
+ <provide interface="java.util.List"/>
+ </service>
+ <reference name="log" interface="org.osgi.service.log.LogService" />
+ </scr:component>
+</root>
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/org/eclipse/equinox/ds/tests/tb27/impl/TestService.java b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/org/eclipse/equinox/ds/tests/tb27/impl/TestService.java
new file mode 100644
index 00000000..ce77a212
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb27/org/eclipse/equinox/ds/tests/tb27/impl/TestService.java
@@ -0,0 +1,19 @@
+package org.eclipse.equinox.ds.tests.tb27.impl;
+
+import java.util.AbstractCollection;
+import java.util.Collections;
+import java.util.Iterator;
+
+public class TestService<T> extends AbstractCollection<T> {
+
+ @Override
+ public Iterator<T> iterator() {
+ return (Iterator<T>) Collections.emptyList().iterator();
+ }
+
+ @Override
+ public int size() {
+ return 0;
+ }
+
+}

Back to the top