Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.osgi.application
Class StandaloneApplication

java.lang.Object
  extended by org.nuxeo.osgi.OSGiAdapter
      extended by org.nuxeo.osgi.application.StandaloneApplication

public class StandaloneApplication
extends OSGiAdapter

Author:
Bogdan Stefanescu

Field Summary
static String MAIN_TASK
           
 
Method Summary
static Environment createEnvironment()
           
static StandaloneApplication createInstance(SharedClassLoader cl)
           
static BundleFile createSystemBundle(URL systemBundle)
          Creates the system bundle from the jar specified by the nuxeo.osgi.system.bundle property.
 List<File> getClassPath()
           
static CommandLineOptions getComandLineOptions()
           
 Environment getEnvironment()
           
static StandaloneApplication getInstance()
           
static Runnable getMainTask()
           
 SharedClassLoader getSharedClassLoader()
           
static boolean hasCommandLineOption(String option)
           
 void install(BundleFile bf)
           
 void installAll(List<BundleFile> bundles)
           
 boolean isStarted()
           
static void main(URL systemBundle, List<File> classPath, String[] args)
           
 void setClassPath(List<File> classPath)
           
static void setMainTask(Runnable mainTask)
           
 void shutdown()
           
 void start()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_TASK

public static final String MAIN_TASK
See Also:
Constant Field Values
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.