use of lucee.runtime.osgi.BundleInfo in project Lucee by lucee.
the class ConfigImpl method getExtensionBundleDefintions.
public Collection<BundleDefinition> getExtensionBundleDefintions() {
if (this.extensionBundles == null) {
RHExtension[] rhes = getRHExtensions();
Map<String, BundleDefinition> extensionBundles = new HashMap<String, BundleDefinition>();
for (RHExtension rhe : rhes) {
BundleInfo[] bis;
try {
bis = rhe.getBundles();
} catch (Exception e) {
continue;
}
if (bis != null)
for (BundleInfo bi : bis) {
extensionBundles.put(bi.getSymbolicName() + "|" + bi.getVersionAsString(), bi.toBundleDefinition());
}
}
this.extensionBundles = extensionBundles;
}
return extensionBundles.values();
}
Aggregations