diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-12 23:23:06 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-12 23:23:06 +0000 |
commit | 1682002aeb775b748c570b0c437b0841669bbfd2 (patch) | |
tree | a39e7899da26adda48c44176dde05f2cd92e1b33 | |
parent | fbbc6f09ceb967e0f1fb918b04a96ecde8ff7295 (diff) |
Add the init method and lazy policy to trigger bundle activation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@694843 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/sca/modules/extensibility-equinox/pom.xml | 3 | ||||
-rw-r--r-- | java/sca/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/java/sca/modules/extensibility-equinox/pom.xml b/java/sca/modules/extensibility-equinox/pom.xml index 84ad3633f6..9547e92f34 100644 --- a/java/sca/modules/extensibility-equinox/pom.xml +++ b/java/sca/modules/extensibility-equinox/pom.xml @@ -101,7 +101,8 @@ <Bundle-Description>${pom.name}</Bundle-Description> <Bundle-Activator>org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator</Bundle-Activator> <Export-Package>org.apache.tuscany.sca.extensibility.equinox*</Export-Package> - <Eclipse-AutoStart>true</Eclipse-AutoStart> + <Eclipse-LazyStart>true</Eclipse-LazyStart> + <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> <DynamicImport-Package>*</DynamicImport-Package> </instructions> </configuration> diff --git a/java/sca/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java b/java/sca/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java index fcc7f21483..5ab5a66077 100644 --- a/java/sca/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java +++ b/java/sca/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java @@ -116,6 +116,10 @@ public class EquinoxServiceDiscoverer implements ServiceDiscoverer { } } + + public static void init() { + // Empty static method to trigger the activation of this bundle + } private static String toString(Bundle b) { StringBuffer sb = new StringBuffer(); |