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
Methods inherited from class org.nuxeo.osgi.OSGiAdapter |
addBundleListener, addFrameworkListener, addServiceListener, addServiceListener, fireBundleEvent, fireFrameworkEvent, fireServiceEvent, getBundle, getBundleId, getDataDir, getInstalledBundles, getProperty, getProperty, getRegistry, getSystemBundle, getWorkingDir, install, removeBundleListener, removeFrameworkListener, removeService, removeServiceListener, setProperty, setSystemBundle, uninstall |
MAIN_TASK
public static final String MAIN_TASK
- See Also:
- Constant Field Values
getInstance
public static StandaloneApplication getInstance()
createInstance
public static StandaloneApplication createInstance(SharedClassLoader cl)
throws IOException
- Throws:
IOException
getSharedClassLoader
public SharedClassLoader getSharedClassLoader()
getEnvironment
public Environment getEnvironment()
start
public void start()
throws Exception
- Throws:
Exception
isStarted
public boolean isStarted()
shutdown
public void shutdown()
throws IOException
- Overrides:
shutdown
in class OSGiAdapter
- Throws:
IOException
getClassPath
public List<File> getClassPath()
setClassPath
public void setClassPath(List<File> classPath)
install
public void install(BundleFile bf)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
installAll
public void installAll(List<BundleFile> bundles)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
createSystemBundle
public static BundleFile createSystemBundle(URL systemBundle)
throws URISyntaxException,
IOException
- Creates the system bundle from the jar specified by the
nuxeo.osgi.system.bundle property.
- Throws:
URISyntaxException
IOException
getComandLineOptions
public static CommandLineOptions getComandLineOptions()
hasCommandLineOption
public static boolean hasCommandLineOption(String option)
createEnvironment
public static Environment createEnvironment()
throws IOException
- Throws:
IOException
setMainTask
public static void setMainTask(Runnable mainTask)
getMainTask
public static Runnable getMainTask()
main
public static void main(URL systemBundle,
List<File> classPath,
String[] args)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.