Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-11-07 18:39:49 +0000
committerThomas Watson2006-11-07 18:39:49 +0000
commitf0a8f34b4651fdfae33eb49aa40cad0b4fda9254 (patch)
tree54eaaba17474efad30f4c10931c7bfe617240c3d /bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a
parent258f0a52ee809adde9f246779f05779cdf45a78f (diff)
downloadrt.equinox.framework-f0a8f34b4651fdfae33eb49aa40cad0b4fda9254.tar.gz
rt.equinox.framework-f0a8f34b4651fdfae33eb49aa40cad0b4fda9254.tar.xz
rt.equinox.framework-f0a8f34b4651fdfae33eb49aa40cad0b4fda9254.zip
Bug 135885 Standardize and enhance lazy-startafter_bug135885
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a')
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/META-INF/MANIFEST.MF12
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/ATest.java15
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/Activator.java26
3 files changed, 53 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..fee1e228d
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Legacy test
+Bundle-SymbolicName: legacy.lazystart.a
+Bundle-Version: 1.0.0
+Bundle-Localization: plugin
+Import-Package:
+ org.eclipse.osgi.tests.bundles,
+ org.osgi.framework;version="1.3.0"
+Eclipse-LazyStart: true
+Export-Package: legacy.lazystart.a
+Bundle-Activator: legacy.lazystart.a.Activator
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/ATest.java b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/ATest.java
new file mode 100644
index 000000000..58f30cf62
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/ATest.java
@@ -0,0 +1,15 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM Corporation and others.
+ * 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package legacy.lazystart.a;
+
+public class ATest {
+
+}
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/Activator.java b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/Activator.java
new file mode 100644
index 000000000..4a5ed5d0c
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/legacy.lazystart.a/legacy/lazystart/a/Activator.java
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM Corporation and others.
+ * 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package legacy.lazystart.a;
+
+import org.eclipse.osgi.tests.bundles.AbstractBundleTests;
+import org.osgi.framework.*;
+
+public class Activator implements BundleActivator {
+
+ public void start(BundleContext context) throws Exception {
+ AbstractBundleTests.simpleResults.addEvent(new BundleEvent(BundleEvent.STARTED, context.getBundle()));
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ AbstractBundleTests.simpleResults.addEvent(new BundleEvent(BundleEvent.STOPPED, context.getBundle()));
+ }
+
+}

Back to the top