Package org.nuxeo.osgi.application
Class StandaloneApplication
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
org.nuxeo.osgi.application.StandaloneApplication
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SharedClassLoaderprotected final Environmentprotected Fileprotected booleanprotected String[]static final Stringprotected booleanFields inherited from class org.nuxeo.osgi.OSGiAdapter
bundleIds, bundleListeners, dataDir, frameworkListeners, idTableFile, properties, registry, serviceListeners, services, systemBundle, workingDir -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic Environmentstatic StandaloneApplicationstatic BundleFilecreateSystemBundle(URL systemBundle) Creates the system bundle from the jar specified by the nuxeo.osgi.system.bundle property.static CommandLineOptionsstatic StandaloneApplicationstatic Runnablestatic booleanhasCommandLineOption(String option) voidinstall(BundleFile bf) voidinstallAll(List<BundleFile> bundles) booleanprotected List<BundleFile> loadUserBundles(String key) static voidvoidsetClassPath(List<File> classPath) static voidsetMainTask(Runnable mainTask) voidshutdown()voidstart()protected voidstartBundles(List<BundleFile> bundles) Methods inherited from class org.nuxeo.osgi.OSGiAdapter
addBundleListener, addFrameworkListener, addServiceListener, addServiceListener, fireBundleEvent, fireFrameworkEvent, fireServiceEvent, getBundle, getBundleId, getDataDir, getInstalledBundles, getProperty, getProperty, getRegistry, getSystemBundle, getWorkingDir, initialize, install, removeBundleListener, removeFrameworkListener, removeService, removeServiceListener, setProperty, setSystemBundle, uninstall
-
Field Details
-
MAIN_TASK
- See Also:
-
classLoader
-
env
-
isStarted
protected boolean isStarted -
home
-
classPath
-
scanForNestedJARs
protected boolean scanForNestedJARs -
libdirs
-
-
Method Details
-
getInstance
-
getEnvironment
-
start
- Throws:
IOExceptionorg.osgi.framework.BundleException
-
isStarted
public boolean isStarted() -
shutdown
- Overrides:
shutdownin classOSGiAdapter- Throws:
IOException
-
startBundles
- Throws:
org.osgi.framework.BundleException
-
loadUserBundles
- Throws:
IOException
-
getClassPath
-
setClassPath
-
autoInstallBundles
- Throws:
IOExceptionorg.osgi.framework.BundleException
-
install
- Throws:
org.osgi.framework.BundleException
-
installAll
- Throws:
org.osgi.framework.BundleException
-
createSystemBundle
Creates the system bundle from the jar specified by the nuxeo.osgi.system.bundle property.- Throws:
IOException
-
getComandLineOptions
-
hasCommandLineOption
-
createEnvironment
- Throws:
IOException
-
setMainTask
-
getMainTask
-
main
- Throws:
Exception
-