+ // singleton
+ boolean isSingleton = false;
+ String rawSourceSymbolicName = manifest.getMainAttributes()
+ .getValue(ManifestConstants.BUNDLE_SYMBOLICNAME.toString());
+ if (rawSourceSymbolicName != null) {
+
+ // make sure there is no directive
+ String[] arr = rawSourceSymbolicName.split(";");
+ for (int i = 1; i < arr.length; i++) {
+ if (arr[i].trim().equals("singleton:=true"))
+ isSingleton = true;
+ logger.log(DEBUG, file.getFileName() + " is a singleton");
+ }
+ }
+