Package org.nuxeo.osgi.application
Class ApplicationBundleLoader
java.lang.Object
org.nuxeo.osgi.application.ApplicationBundleLoader
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final StandaloneApplication
protected StandaloneBundleLoader
protected boolean
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
boolean
boolean
boolean
loadBundles
(List<File> classPath) protected void
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 Details
-
bundleLoader
-
app
-
useCache
protected boolean useCache -
extractNestedJARs
protected boolean extractNestedJARs -
scanForNestedJARs
protected boolean scanForNestedJARs
-
-
Constructor Details
-
ApplicationBundleLoader
-
ApplicationBundleLoader
-
-
Method Details
-
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
-
getCacheFile
-
loadBundles
public ClassLoader loadBundles(List<File> classPath) throws IOException, org.osgi.framework.BundleException - Throws:
IOException
org.osgi.framework.BundleException
-
scanAndLoad
-
writeCache
public static void writeCache(File file, List<BundleFile> bundles, List<BundleFile> jars) throws IOException - Throws:
IOException
-
fastLoad
- Throws:
IOException
org.osgi.framework.BundleException
-
aboutToStartRuntime
protected void aboutToStartRuntime() -
runtimeStarted
protected void runtimeStarted()
-