public class StandaloneApplication extends OSGiAdapter
| Modifier and Type | Field and Description |
|---|---|
protected SharedClassLoader |
classLoader |
protected List<File> |
classPath |
protected Environment |
env |
protected File |
home |
protected boolean |
isStarted |
protected String[] |
libdirs |
static String |
MAIN_TASK |
protected boolean |
scanForNestedJARs |
bundleIds, bundleListeners, dataDir, frameworkListeners, idTableFile, properties, registry, serviceListeners, services, systemBundle, uRLJarFileCloser, workingDiraddBundleListener, addFrameworkListener, addServiceListener, addServiceListener, fireBundleEvent, fireFrameworkEvent, fireServiceEvent, getBundle, getBundleId, getDataDir, getInstalledBundles, getProperty, getProperty, getRegistry, getSystemBundle, getURLJarFileCloser, getWorkingDir, initialize, install, newJarFileCloser, removeBundleListener, removeFrameworkListener, removeService, removeServiceListener, setProperty, setSystemBundle, uninstallpublic static final String MAIN_TASK
protected final SharedClassLoader classLoader
protected final Environment env
protected boolean isStarted
protected boolean scanForNestedJARs
public static StandaloneApplication getInstance()
public static StandaloneApplication createInstance(SharedClassLoader cl) throws IOException
IOExceptionpublic SharedClassLoader getSharedClassLoader()
public Environment getEnvironment()
public void start() throws IOException, org.osgi.framework.BundleException
IOExceptionorg.osgi.framework.BundleExceptionpublic boolean isStarted()
public void shutdown() throws IOException
shutdown in class OSGiAdapterIOExceptionprotected void startBundles(List<BundleFile> bundles) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionprotected List<BundleFile> loadUserBundles(String key) throws IOException
IOExceptionpublic List<File> getClassPath()
public void setClassPath(List<File> classPath)
protected void autoInstallBundles() throws IOException, org.osgi.framework.BundleException
IOExceptionorg.osgi.framework.BundleExceptionpublic void install(BundleFile bf) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic void installAll(List<BundleFile> bundles) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static BundleFile createSystemBundle(URL systemBundle) throws IOException
IOExceptionpublic static CommandLineOptions getComandLineOptions()
public static boolean hasCommandLineOption(String option)
public static Environment createEnvironment() throws IOException
IOExceptionpublic static void setMainTask(Runnable mainTask)
public static Runnable getMainTask()
Copyright © 2016 Nuxeo SA. All rights reserved.