/** * 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(); } }
/** * 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(); } }
/** * 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(); } }
/** * Perform the check for an existing mailcap file when * a bundle is registered. * * @param bundle The potential provider bundle. * * @return A URL object if this bundle contains a mailcap file. */ private Object registerBundle(Bundle bundle) { URL url = bundle.getResource("/META-INF/mailcap"); if (url != null) { log(LogService.LOG_DEBUG, "found mailcap at " + url); mailCaps.put(bundle.getBundleId(), url); rebuildCommandMap(); } // the url marks our interest in additional activity for this // bundle. return url; }
/** * Perform the check for an existing mailcap file when * a bundle is registered. * * @param bundle The potential provider bundle. * * @return A URL object if this bundle contains a mailcap file. */ private Object registerBundle(Bundle bundle) { URL url = bundle.getResource("/META-INF/mailcap"); if (url != null) { log(LogService.LOG_DEBUG, "found mailcap at " + url); mailCaps.put(bundle.getBundleId(), url); rebuildCommandMap(); } // the url marks our interest in additional activity for this // bundle. return url; }
/** * Perform the check for an existing mailcap file when * a bundle is registered. * * @param bundle The potential provider bundle. * * @return A URL object if this bundle contains a mailcap file. */ private Object registerBundle(Bundle bundle) { URL url = bundle.getResource("/META-INF/mailcap"); if (url != null) { log(LogService.LOG_DEBUG, "found mailcap at " + url); mailCaps.put(bundle.getBundleId(), url); rebuildCommandMap(); } // the url marks our interest in additional activity for this // bundle. return url; }