Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java')
-rw-r--r--bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java33
1 files changed, 16 insertions, 17 deletions
diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java
index a5ed6a481..006625352 100644
--- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java
+++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/SupplementBundleListener.java
@@ -18,24 +18,23 @@ import org.osgi.framework.SynchronousBundleListener;
public class SupplementBundleListener implements SynchronousBundleListener {
- private final SupplementerRegistry supplementerRegistry;
+ private final SupplementerRegistry supplementerRegistry;
- public SupplementBundleListener(SupplementerRegistry supplementerRegistry) {
- this.supplementerRegistry = supplementerRegistry;
- }
+ public SupplementBundleListener(
+ final SupplementerRegistry supplementerRegistry) {
+ this.supplementerRegistry = supplementerRegistry;
+ }
- public void bundleChanged(BundleEvent event) {
- Bundle bundle = event.getBundle();
- if (event.getType() == BundleEvent.INSTALLED) {
- supplementerRegistry.addSupplementer(bundle);
- }
- else if (event.getType() == BundleEvent.UNINSTALLED) {
- supplementerRegistry.removeSupplementer(bundle);
- }
- else if (event.getType() == BundleEvent.UPDATED) {
- supplementerRegistry.removeSupplementer(bundle);
- supplementerRegistry.addSupplementer(bundle);
- }
- }
+ public void bundleChanged(final BundleEvent event) {
+ final Bundle bundle = event.getBundle();
+ if (event.getType() == BundleEvent.INSTALLED) {
+ supplementerRegistry.addSupplementer(bundle);
+ } else if (event.getType() == BundleEvent.UNINSTALLED) {
+ supplementerRegistry.removeSupplementer(bundle);
+ } else if (event.getType() == BundleEvent.UPDATED) {
+ supplementerRegistry.removeSupplementer(bundle);
+ supplementerRegistry.addSupplementer(bundle);
+ }
+ }
}

Back to the top