org.nuxeo.osgi.application
Class StandaloneApplication
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
org.nuxeo.osgi.application.StandaloneApplication
public class StandaloneApplication
- extends OSGiAdapter
- Author:
- Bogdan Stefanescu
Field Summary |
static java.lang.String |
MAIN_TASK
|
Methods inherited from class org.nuxeo.osgi.OSGiAdapter |
addBundleListener, addFrameworkListener, addServiceListener, addServiceListener, fireBundleEvent, fireFrameworkEvent, fireServiceEvent, getBundleId, getDataDir, getInstalledBundles, getProperty, getProperty, getRegistry, getSystemBundle, getWorkingDir, install, removeBundleListener, removeFrameworkListener, removeServiceListener, setProperty, setSystemBundle, uninstall |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIN_TASK
public static final java.lang.String MAIN_TASK
- See Also:
- Constant Field Values
getInstance
public static StandaloneApplication getInstance()
createInstance
public static StandaloneApplication createInstance(SharedClassLoader cl)
throws java.io.IOException
- Throws:
java.io.IOException
getSharedClassLoader
public SharedClassLoader getSharedClassLoader()
getEnvironment
public Environment getEnvironment()
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
isStarted
public boolean isStarted()
shutdown
public void shutdown()
throws java.io.IOException
- Overrides:
shutdown
in class OSGiAdapter
- Throws:
java.io.IOException
getClassPath
public java.util.List<java.io.File> getClassPath()
setClassPath
public void setClassPath(java.util.List<java.io.File> classPath)
install
public void install(BundleFile bf)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
installAll
public void installAll(java.util.List<BundleFile> bundles)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
createSystemBundle
public static BundleFile createSystemBundle(java.net.URL systemBundle)
throws java.net.URISyntaxException,
java.io.IOException
- Creates the system bundle from the jar specified by the
nuxeo.osgi.system.bundle property.
- Throws:
java.net.URISyntaxException
java.io.IOException
getComandLineOptions
public static CommandLineOptions getComandLineOptions()
hasCommandLineOption
public static boolean hasCommandLineOption(java.lang.String option)
createEnvironment
public static Environment createEnvironment()
throws java.io.IOException
- Throws:
java.io.IOException
setMainTask
public static void setMainTask(java.lang.Runnable mainTask)
getMainTask
public static java.lang.Runnable getMainTask()
main
public static void main(java.net.URL systemBundle,
java.util.List<java.io.File> classPath,
java.lang.String[] args)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.