@Override public void removedBundle(Bundle bundle, BundleEvent event, Object object) { unregisterBundle(bundle); }
private void log(int level, String message) { activator.log(level, message); }
@Override public void modifiedBundle(Bundle bundle, BundleEvent event, Object object) { log(LogService.LOG_DEBUG, "Bundle Considered for mailcap providers: " + bundle.getSymbolicName()); // this will update for the new bundle registerBundle(bundle); }
/** * Remove a bundle from our potential mailcap pool. * * @param bundle The potential source bundle. */ protected void unregisterBundle(Bundle bundle) { URL mailcap = mailCaps.remove(bundle.getBundleId()); if (mailcap != null ){ log(LogService.LOG_DEBUG, "removing mailcap at " + mailcap); rebuildCommandMap(); } }
@Override public synchronized void start(final BundleContext context) throws Exception { super.start(context); lst = new LogServiceTracker(context, LogService.class.getName(), null); lst.open(); bt = new BundleTracker(context, Bundle.ACTIVE, new CommandMapBundleTrackerCustomizer(this, context.getBundle())); bt.open(); }
/** * Handle the activation of a new bundle. * * @param bundle The source bundle. * @param event The bundle event information. * * @return A return object. */ @Override public Object addingBundle(Bundle bundle, BundleEvent event) { if (bundle.equals(activationBundle)) { return null; } return registerBundle(bundle); }
public void start(final BundleContext bundleContext) throws Exception { locator.start(bundleContext); activation.start(bundleContext); persistence.start(bundleContext); }
@Override public void modifiedBundle(Bundle bundle, BundleEvent event, Object object) { log(LogService.LOG_DEBUG, "Bundle Considered for mailcap providers: " + bundle.getSymbolicName()); // this will update for the new bundle registerBundle(bundle); }
/** * Remove a bundle from our potential mailcap pool. * * @param bundle The potential source bundle. */ protected void unregisterBundle(Bundle bundle) { URL mailcap = mailCaps.remove(bundle.getBundleId()); if (mailcap != null ){ log(LogService.LOG_DEBUG, "removing mailcap at " + mailcap); rebuildCommandMap(); } }
private void log(int level, String message, Throwable th) { activator.log(level, message, th); }
@Override public void removedBundle(Bundle bundle, BundleEvent event, Object object) { unregisterBundle(bundle); }
/** * Handle the activation of a new bundle. * * @param bundle The source bundle. * @param event The bundle event information. * * @return A return object. */ @Override public Object addingBundle(Bundle bundle, BundleEvent event) { if (bundle.equals(activationBundle)) { return null; } return registerBundle(bundle); }
@Override public void modifiedBundle(Bundle bundle, BundleEvent event, Object object) { log(LogService.LOG_DEBUG, "Bundle Considered for mailcap providers: " + bundle.getSymbolicName()); // this will update for the new bundle registerBundle(bundle); }
/** * Remove a bundle from our potential mailcap pool. * * @param bundle The potential source bundle. */ protected void unregisterBundle(Bundle bundle) { URL mailcap = mailCaps.remove(bundle.getBundleId()); if (mailcap != null ){ log(LogService.LOG_DEBUG, "removing mailcap at " + mailcap); rebuildCommandMap(); } }
private void log(int level, String message) { activator.log(level, message); }
@Override public void removedBundle(Bundle bundle, BundleEvent event, Object object) { unregisterBundle(bundle); }
/** * Handle the activation of a new bundle. * * @param bundle The source bundle. * @param event The bundle event information. * * @return A return object. */ @Override public Object addingBundle(Bundle bundle, BundleEvent event) { if (bundle.equals(activationBundle)) { return null; } return registerBundle(bundle); }
private void log(int level, String message) { activator.log(level, message); }
private void log(int level, String message, Throwable th) { activator.log(level, message, th); }
private void log(int level, String message, Throwable th) { activator.log(level, message, th); }