Package org.nuxeo.osgi.application
Class ApplicationBundleLoader
- java.lang.Object
-
- org.nuxeo.osgi.application.ApplicationBundleLoader
-
public class ApplicationBundleLoader extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected StandaloneApplicationappprotected StandaloneBundleLoaderbundleLoaderprotected booleanextractNestedJARsprotected booleanscanForNestedJARsprotected booleanuseCache
-
Constructor Summary
Constructors Constructor Description ApplicationBundleLoader(StandaloneApplication app)ApplicationBundleLoader(StandaloneApplication app, boolean useCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaboutToStartRuntime()voidfastLoad(File file)StandaloneBundleLoadergetBundleLoader()FilegetCacheFile()booleangetExtractNestedJARs()booleangetScanForNestedJARs()booleangetUseCache()ClassLoaderloadBundles(List<File> classPath)protected voidruntimeStarted()voidscanAndLoad(List<File> classPath, List<BundleFile> bundles, List<BundleFile> jars)voidsetExtractNestedJARs(boolean extractNestedJARs)voidsetScanForNestedJARs(boolean scanForNestedJARs)voidsetUseCache(boolean useCache)static voidwriteCache(File file, List<BundleFile> bundles, List<BundleFile> jars)
-
-
-
Field Detail
-
bundleLoader
protected StandaloneBundleLoader bundleLoader
-
app
protected final StandaloneApplication app
-
useCache
protected boolean useCache
-
extractNestedJARs
protected boolean extractNestedJARs
-
scanForNestedJARs
protected boolean scanForNestedJARs
-
-
Constructor Detail
-
ApplicationBundleLoader
public ApplicationBundleLoader(StandaloneApplication app)
-
ApplicationBundleLoader
public ApplicationBundleLoader(StandaloneApplication app, boolean useCache)
-
-
Method Detail
-
setScanForNestedJARs
public void setScanForNestedJARs(boolean scanForNestedJARs)
-
getScanForNestedJARs
public boolean getScanForNestedJARs()
-
setExtractNestedJARs
public void setExtractNestedJARs(boolean extractNestedJARs)
-
getExtractNestedJARs
public boolean getExtractNestedJARs()
-
setUseCache
public void setUseCache(boolean useCache)
-
getUseCache
public boolean getUseCache()
-
getBundleLoader
public StandaloneBundleLoader getBundleLoader()
-
getCacheFile
public File getCacheFile()
-
loadBundles
public ClassLoader loadBundles(List<File> classPath) throws IOException, org.osgi.framework.BundleException
- Throws:
IOExceptionorg.osgi.framework.BundleException
-
scanAndLoad
public void scanAndLoad(List<File> classPath, List<BundleFile> bundles, List<BundleFile> jars)
-
writeCache
public static void writeCache(File file, List<BundleFile> bundles, List<BundleFile> jars) throws IOException
- Throws:
IOException
-
fastLoad
public void fastLoad(File file) throws IOException, org.osgi.framework.BundleException
- Throws:
IOExceptionorg.osgi.framework.BundleException
-
aboutToStartRuntime
protected void aboutToStartRuntime()
-
runtimeStarted
protected void runtimeStarted()
-
-