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 SharedClassLoader
loader
-
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 SharedClassLoader
getSharedClassLoader()
void
installBundle(BundleFile bundleFile)
void
loadBundle(BundleFile bundleFile)
void
loadJAR(BundleFile bundleFile)
static void
main(String[] args)
void
setSharedClassLoader(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:
installBundle
in classApplicationLoader
- Throws:
org.osgi.framework.BundleException
-
loadBundle
public void loadBundle(BundleFile bundleFile)
- Specified by:
loadBundle
in classApplicationLoader
-
loadJAR
public void loadJAR(BundleFile bundleFile)
- Specified by:
loadJAR
in classApplicationLoader
-
-