private boolean pluginSanityCheck(Bundle b) { boolean passed = true; boolean hasPluginXml = (b.getResource("/plugin.xml") != null); if (b.getHeaders().get(BUNDLE_WITHOUT_PLUGIN_XML) == null && !hasPluginXml) { logger.debug("\t" + getNiceBundleName(b) + " Plugin has no plugin.xml resource"); passed = false; } if (hasPluginXml && !isSingleton(b)) { logger.warn("\t" + getNiceBundleName(b) + " plugin is not a singleton so its plugin.xml will not be seen by the registry."); passed = false; } return passed; }
private boolean pluginSanityCheck(Bundle b) { boolean passed = true; boolean hasPluginXml = (b.getResource("/plugin.xml") != null); if (b.getHeaders().get(BUNDLE_WITHOUT_PLUGIN_XML) == null && !hasPluginXml) { logger.info("\t" + getNiceBundleName(b) + " Plugin has no plugin.xml resource"); passed = false; } if (hasPluginXml && !isSingleton(b)) { logger.warn("\t" + getNiceBundleName(b) + " plugin is not a singleton so its plugin.xml will not be seen by the registry." ); passed = false; } return passed; }