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 StandaloneApplication
app
protected StandaloneBundleLoader
bundleLoader
protected boolean
extractNestedJARs
protected boolean
scanForNestedJARs
protected boolean
useCache
-
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 void
aboutToStartRuntime()
void
fastLoad(File file)
StandaloneBundleLoader
getBundleLoader()
File
getCacheFile()
boolean
getExtractNestedJARs()
boolean
getScanForNestedJARs()
boolean
getUseCache()
ClassLoader
loadBundles(List<File> classPath)
protected void
runtimeStarted()
void
scanAndLoad(List<File> classPath, List<BundleFile> bundles, List<BundleFile> jars)
void
setExtractNestedJARs(boolean extractNestedJARs)
void
setScanForNestedJARs(boolean scanForNestedJARs)
void
setUseCache(boolean useCache)
static void
writeCache(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:
IOException
org.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:
IOException
org.osgi.framework.BundleException
-
aboutToStartRuntime
protected void aboutToStartRuntime()
-
runtimeStarted
protected void runtimeStarted()
-
-