commit | 3e831c7efa41da4073cf895358eb9e52070bd1ce | [log] [tgz] |
---|---|---|
author | hseeberger | Wed Aug 06 12:07:08 2008 +0000 |
committer | hseeberger | Wed Aug 06 12:07:08 2008 +0000 |
tree | 6673f7c804f93652300399de0d990aa6b740b0d4 | |
parent | b021c231440d49aebef87cd2a5f01b9f95f795ab [diff] |
Enhancements for service dynamics.
diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java index cd21e49..213da49 100644 --- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java +++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java
@@ -252,17 +252,7 @@ + bundle.getSymbolicName()); try { - final int initialstate = (bundle.getState() & (Bundle.ACTIVE | Bundle.STARTING)); - // TODO Why stop? Shouldn't start again? - boolean wasStopped = false; - if (initialstate != 0 - && packageAdmin != null - && packageAdmin.getBundleType(bundle) != PackageAdmin.BUNDLE_TYPE_FRAGMENT) { - wasStopped = true; - bundle.stop(Bundle.STOP_TRANSIENT); - } bundle.update(); - if (wasStopped) bundle.start(Bundle.START_TRANSIENT); } catch (final BundleException e) { e.printStackTrace(); }