Search in sources :

Example 6 with BundleInfo

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();
}
Also used : BundleDefinition(lucee.runtime.osgi.OSGiUtil.BundleDefinition) RHExtension(lucee.runtime.extension.RHExtension) BundleInfo(lucee.runtime.osgi.BundleInfo) HashMap(java.util.HashMap) FunctionLibException(lucee.transformer.library.function.FunctionLibException) PageRuntimeException(lucee.runtime.exp.PageRuntimeException) PageException(lucee.runtime.exp.PageException) SecurityException(lucee.runtime.exp.SecurityException) TagLibException(lucee.transformer.library.tag.TagLibException) IOException(java.io.IOException) DatabaseException(lucee.runtime.exp.DatabaseException) DeprecatedException(lucee.runtime.exp.DeprecatedException) BundleException(org.osgi.framework.BundleException) TemplateException(lucee.runtime.exp.TemplateException) ClassException(lucee.commons.lang.ClassException) ExpressionException(lucee.runtime.exp.ExpressionException) ApplicationException(lucee.runtime.exp.ApplicationException)

Aggregations

BundleInfo (lucee.runtime.osgi.BundleInfo)6 RHExtension (lucee.runtime.extension.RHExtension)4 ApplicationException (lucee.runtime.exp.ApplicationException)3 BundleDefinition (lucee.runtime.osgi.OSGiUtil.BundleDefinition)3 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 ZipEntry (java.util.zip.ZipEntry)2 ZipInputStream (java.util.zip.ZipInputStream)2 ClassException (lucee.commons.lang.ClassException)2 ExpressionException (lucee.runtime.exp.ExpressionException)2 PageException (lucee.runtime.exp.PageException)2 SecurityException (lucee.runtime.exp.SecurityException)2 FunctionLibException (lucee.transformer.library.function.FunctionLibException)2 TagLibException (lucee.transformer.library.tag.TagLibException)2 BundleException (org.osgi.framework.BundleException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 MalformedURLException (java.net.MalformedURLException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 SQLException (java.sql.SQLException)1