Package org.nuxeo.osgi.application
Class ApplicationLoader
java.lang.Object
org.nuxeo.osgi.application.ApplicationLoader
- Direct Known Subclasses:
 StandaloneBundleLoader
- Author:
 - Bogdan Stefanescu
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassInstalls bundles as they are discovered by the bundle visitor.class - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetOSGi()booleanvoidInstalls all bundles found in the given directory.voidinstallAll(Collection<BundleFile> bundleFiles) Installs all given bundle deployments.abstract voidinstallBundle(BundleFile bundleFile) voidload(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 voidloadBundle(BundleFile bundleFile) abstract voidloadJAR(BundleFile bundleFile) voidscan(File root, List<BundleFile> bundles, List<BundleFile> ljars) Scans the given directory for OSGi bundles and regular JARs and fills the given lists appropriately.voidsetExtractNestedJARs(boolean extractNestedJARs) voidsetPatterns(FileNamePattern[] patterns) voidsetScanForNestedJARs(boolean scanForNestedJARs)  
- 
Field Details
- 
osgi
 - 
extractNestedJARs
protected boolean extractNestedJARs - 
scanForNestedJARs
protected boolean scanForNestedJARs 
 - 
 - 
Constructor Details
- 
ApplicationLoader
 
 - 
 - 
Method Details
- 
installBundle
- Throws:
 org.osgi.framework.BundleException
 - 
loadBundle
 - 
loadJAR
 - 
getNestedBundleDirectory
 - 
getOSGi
 - 
setExtractNestedJARs
public void setExtractNestedJARs(boolean extractNestedJARs)  - 
getExtractNestedJARs
public boolean getExtractNestedJARs() - 
setScanForNestedJARs
public void setScanForNestedJARs(boolean scanForNestedJARs)  - 
getScanForNestedJARs
public boolean getScanForNestedJARs() - 
setPatterns
 - 
getPatterns
 - 
load
Scans and loads the given directory for OSGi bundles and regular JARs and fills the given lists appropriately.Loading means registering with the given shared class loader each bundle found.
- Parameters:
 root- the directory to recursively scanbundles- the list to fill with found bundlesjars- the list to fill with found jars
 - 
installAll
public void installAll(Collection<BundleFile> bundleFiles) throws org.osgi.framework.BundleException Installs all given bundle deployments.- Throws:
 org.osgi.framework.BundleException
 - 
install
Installs all bundles found in the given directory.The directory is recursively searched for bundles.
- Parameters:
 root- the tree root
 - 
scan
Scans the given directory for OSGi bundles and regular JARs and fills the given lists appropriately.- Parameters:
 root- the directory to recursively scanbundles- the list to fill with found bundlesljars- the list to fill with found jars
 
 -