Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsboshev2009-05-11 11:19:33 +0000
committersboshev2009-05-11 11:19:33 +0000
commit7251a13924c3e0be584c4baefa06b4665bd36233 (patch)
treebd32369333ee06c70c6fdda27383260ebb8020ad
parent920b84e0c62af592a00484c323cad0d9eae6cd81 (diff)
downloadrt.equinox.bundles-7251a13924c3e0be584c4baefa06b4665bd36233.tar.gz
rt.equinox.bundles-7251a13924c3e0be584c4baefa06b4665bd36233.tar.xz
rt.equinox.bundles-7251a13924c3e0be584c4baefa06b4665bd36233.zip
bad components separated
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/META-INF/MANIFEST.MF8
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Comp1.java5
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Immediate.java16
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/components.xml32
4 files changed, 61 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..efc39fafa
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-Name: Declaritive services test
+Bundle-Description: Declaritive services TB1a
+Bundle-Category: test
+Import-Package: org.eclipse.equinox.ds.tests.tbc,
+ org.osgi.framework,
+ org.osgi.service.component;version="1.0.0"
+Service-Component: org/eclipse/equinox/ds/tests/tb1a/components.xml
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Comp1.java b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Comp1.java
new file mode 100644
index 000000000..35346c656
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Comp1.java
@@ -0,0 +1,5 @@
+package org.eclipse.equinox.ds.tests.tb1a;
+
+public class Comp1 {
+
+}
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Immediate.java b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Immediate.java
new file mode 100644
index 000000000..46a7dad20
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/Immediate.java
@@ -0,0 +1,16 @@
+/*******************************************************************************
+ * Copyright (c) 1997-2009 by ProSyst Software GmbH
+ * http://www.prosyst.com
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * ProSyst Software GmbH - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.ds.tests.tb1a;
+
+public class Immediate {
+
+}
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/components.xml b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/components.xml
new file mode 100644
index 000000000..ccfe0753e
--- /dev/null
+++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb1a/org/eclipse/equinox/ds/tests/tb1a/components.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+
+<!-- bad component - component factory cannot be immediate -->
+<scr:component name="org.eclipse.equinox.ds.tests.tb1a.Immediate"
+ xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0"
+ immediate="true"
+ factory="org.eclipse.equinox.ds.tests.tb1a.Immediate">
+ <implementation class="org.eclipse.equinox.ds.tests.tb1a.Immediate" />
+ <service>
+ <provide interface="org.eclipse.equinox.ds.tests.tb1a.Immediate"/>
+ </service>
+</scr:component>
+
+<!-- this below should be ignored by the SCR parser -->
+<ignored>
+ <component>
+ <service servicefactory="true" />
+ </component>
+</ignored>
+
+<scr:component name="org.eclipse.equinox.ds.tests.tb1a.Comp1"
+ enabled="true"
+ xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0">
+ <implementation class="org.eclipse.equinox.ds.tests.tb1a.Comp1"/>
+ <property name="custom" value="customvalue"/>
+ <service>
+ <provide interface="org.eclipse.equinox.ds.tests.tb1a.Comp1"/>
+ </service>
+</scr:component>
+
+</root>

Back to the top