public abstract class ApplicationLoader extends Object
Modifier and Type | Class and Description |
---|---|
class |
ApplicationLoader.BundleFileLoader |
class |
ApplicationLoader.BundleFileScanner |
class |
ApplicationLoader.BundleInstaller
Installs bundles as they are discovered by the bundle visitor.
|
class |
ApplicationLoader.DefaultCallback |
Modifier and Type | Field and Description |
---|---|
protected boolean |
extractNestedJARs |
protected OSGiAdapter |
osgi |
protected boolean |
scanForNestedJARs |
Modifier | Constructor and Description |
---|---|
protected |
ApplicationLoader(OSGiAdapter osgi) |
Modifier and Type | Method and Description |
---|---|
boolean |
getExtractNestedJARs() |
File |
getNestedBundleDirectory() |
OSGiAdapter |
getOSGi() |
FileNamePattern[] |
getPatterns() |
boolean |
getScanForNestedJARs() |
void |
install(File root)
Installs all bundles found in the given directory.
|
void |
installAll(Collection<BundleFile> bundleFiles)
Installs all given bundle deployments.
|
abstract void |
installBundle(BundleFile bundleFile) |
void |
load(File root,
List<BundleFile> bundles,
List<BundleFile> jars)
Scans and loads the given directory for OSGi bundles and regular JARs and fills the given lists appropriately.
|
abstract void |
loadBundle(BundleFile bundleFile) |
abstract void |
loadJAR(BundleFile bundleFile) |
void |
scan(File root,
List<BundleFile> bundles,
List<BundleFile> ljars)
Scans the given directory for OSGi bundles and regular JARs and fills the given lists appropriately.
|
void |
setExtractNestedJARs(boolean extractNestedJARs) |
void |
setPatterns(FileNamePattern[] patterns) |
void |
setScanForNestedJARs(boolean scanForNestedJARs) |
protected final OSGiAdapter osgi
protected boolean extractNestedJARs
protected boolean scanForNestedJARs
protected ApplicationLoader(OSGiAdapter osgi)
public abstract void installBundle(BundleFile bundleFile) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public abstract void loadBundle(BundleFile bundleFile)
public abstract void loadJAR(BundleFile bundleFile)
public File getNestedBundleDirectory()
public OSGiAdapter getOSGi()
public void setExtractNestedJARs(boolean extractNestedJARs)
public boolean getExtractNestedJARs()
public void setScanForNestedJARs(boolean scanForNestedJARs)
public boolean getScanForNestedJARs()
public void setPatterns(FileNamePattern[] patterns)
public FileNamePattern[] getPatterns()
public void load(File root, List<BundleFile> bundles, List<BundleFile> jars)
Loading means registering with the given shared class loader each bundle found.
root
- the directory to recursively scanbundles
- the list to fill with found bundlesjars
- the list to fill with found jarspublic void installAll(Collection<BundleFile> bundleFiles) throws org.osgi.framework.BundleException
bundleFiles
- org.osgi.framework.BundleException
public void install(File root)
The directory is recursively searched for bundles.
root
- the tree rootpublic void scan(File root, List<BundleFile> bundles, List<BundleFile> ljars)
root
- the directory to recursively scanbundles
- the list to fill with found bundlesljars
- the list to fill with found jarsCopyright © 2017 Nuxeo. All rights reserved.