|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.osgi.application.ApplicationLoader
public abstract class ApplicationLoader
| Nested Class Summary | |
|---|---|
class |
ApplicationLoader.BundleFileLoader
|
class |
ApplicationLoader.BundleFileScanner
|
class |
ApplicationLoader.BundleInstaller
Installs bundles as they are discovered by the bundle visitor. |
class |
ApplicationLoader.DefaultCallback
|
| Field Summary | |
|---|---|
protected boolean |
extractNestedJARs
|
protected OSGiAdapter |
osgi
|
protected boolean |
scanForNestedJARs
|
| Constructor Summary | |
|---|---|
protected |
ApplicationLoader(OSGiAdapter osgi)
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final OSGiAdapter osgi
protected boolean extractNestedJARs
protected boolean scanForNestedJARs
| Constructor Detail |
|---|
protected ApplicationLoader(OSGiAdapter osgi)
| Method Detail |
|---|
public abstract void installBundle(BundleFile bundleFile)
throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic 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 jars
public void installAll(Collection<BundleFile> bundleFiles)
throws org.osgi.framework.BundleException
bundleFiles -
org.osgi.framework.BundleExceptionpublic void install(File root)
The directory is recursively searched for bundles.
root - the tree root
public 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 jars
|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||