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, workingDir
addBundleListener, 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, uninstall
public 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
IOException
public SharedClassLoader getSharedClassLoader()
public Environment getEnvironment()
public void start() throws IOException, org.osgi.framework.BundleException
IOException
org.osgi.framework.BundleException
public boolean isStarted()
public void shutdown() throws IOException
shutdown
in class OSGiAdapter
IOException
protected void startBundles(List<BundleFile> bundles) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
protected List<BundleFile> loadUserBundles(String key) throws IOException
IOException
public List<File> getClassPath()
public void setClassPath(List<File> classPath)
protected void autoInstallBundles() throws IOException, org.osgi.framework.BundleException
IOException
org.osgi.framework.BundleException
public void install(BundleFile bf) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public void installAll(List<BundleFile> bundles) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static BundleFile createSystemBundle(URL systemBundle) throws IOException
IOException
public static CommandLineOptions getComandLineOptions()
public static boolean hasCommandLineOption(String option)
public static Environment createEnvironment() throws IOException
IOException
public static void setMainTask(Runnable mainTask)
public static Runnable getMainTask()
Copyright © 2016 Nuxeo SA. All rights reserved.