Package org.nuxeo.osgi.application
Class StandaloneApplication
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
org.nuxeo.osgi.application.StandaloneApplication
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SharedClassLoader
protected final Environment
protected File
protected boolean
protected String[]
static final String
protected boolean
Fields inherited from class org.nuxeo.osgi.OSGiAdapter
bundleIds, bundleListeners, dataDir, frameworkListeners, idTableFile, properties, registry, serviceListeners, services, systemBundle, workingDir
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
static Environment
static StandaloneApplication
static BundleFile
createSystemBundle
(URL systemBundle) Creates the system bundle from the jar specified by the nuxeo.osgi.system.bundle property.static CommandLineOptions
static StandaloneApplication
static Runnable
static boolean
hasCommandLineOption
(String option) void
install
(BundleFile bf) void
installAll
(List<BundleFile> bundles) boolean
protected List<BundleFile>
loadUserBundles
(String key) static void
void
setClassPath
(List<File> classPath) static void
setMainTask
(Runnable mainTask) void
shutdown()
void
start()
protected void
startBundles
(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:
IOException
org.osgi.framework.BundleException
-
isStarted
public boolean isStarted() -
shutdown
- Overrides:
shutdown
in classOSGiAdapter
- Throws:
IOException
-
startBundles
- Throws:
org.osgi.framework.BundleException
-
loadUserBundles
- Throws:
IOException
-
getClassPath
-
setClassPath
-
autoInstallBundles
- Throws:
IOException
org.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
-