Package org.nuxeo.osgi.application
Class StandaloneBundleLoader
- java.lang.Object
-
- org.nuxeo.osgi.application.ApplicationLoader
-
- org.nuxeo.osgi.application.StandaloneBundleLoader
-
public class StandaloneBundleLoader extends ApplicationLoader
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.osgi.application.ApplicationLoader
ApplicationLoader.BundleFileLoader, ApplicationLoader.BundleFileScanner, ApplicationLoader.BundleInstaller, ApplicationLoader.DefaultCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected SharedClassLoaderloader-
Fields inherited from class org.nuxeo.osgi.application.ApplicationLoader
extractNestedJARs, osgi, scanForNestedJARs
-
-
Constructor Summary
Constructors Constructor Description StandaloneBundleLoader(OSGiAdapter osgi)StandaloneBundleLoader(OSGiAdapter osgi, ClassLoader parentLoader)StandaloneBundleLoader(OSGiAdapter osgi, SharedClassLoader scl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedClassLoadergetSharedClassLoader()voidinstallBundle(BundleFile bundleFile)voidloadBundle(BundleFile bundleFile)voidloadJAR(BundleFile bundleFile)static voidmain(String[] args)voidsetSharedClassLoader(SharedClassLoader loader)-
Methods inherited from class org.nuxeo.osgi.application.ApplicationLoader
getExtractNestedJARs, getNestedBundleDirectory, getOSGi, getPatterns, getScanForNestedJARs, install, installAll, load, scan, setExtractNestedJARs, setPatterns, setScanForNestedJARs
-
-
-
-
Field Detail
-
loader
protected SharedClassLoader loader
-
-
Constructor Detail
-
StandaloneBundleLoader
public StandaloneBundleLoader(OSGiAdapter osgi)
-
StandaloneBundleLoader
public StandaloneBundleLoader(OSGiAdapter osgi, ClassLoader parentLoader)
-
StandaloneBundleLoader
public StandaloneBundleLoader(OSGiAdapter osgi, SharedClassLoader scl)
-
-
Method Detail
-
setSharedClassLoader
public void setSharedClassLoader(SharedClassLoader loader)
-
getSharedClassLoader
public SharedClassLoader getSharedClassLoader()
-
installBundle
public void installBundle(BundleFile bundleFile) throws org.osgi.framework.BundleException
- Specified by:
installBundlein classApplicationLoader- Throws:
org.osgi.framework.BundleException
-
loadBundle
public void loadBundle(BundleFile bundleFile)
- Specified by:
loadBundlein classApplicationLoader
-
loadJAR
public void loadJAR(BundleFile bundleFile)
- Specified by:
loadJARin classApplicationLoader
-
-