Class NuxeoApp
- java.lang.Object
-
- org.nuxeo.osgi.application.client.NuxeoApp
-
public class NuxeoApp extends Object
Nuxeo Runtime launcher.This launcher assumes all bundles are already on the classpath.
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Environmentenvprotected ClassLoaderloader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeployBundle(File file)voiddeployBundles(File baseDir, String bundlePath)voiddeployBundles(String bundlePath)voiddeployBundles(Collection<File> files)static List<File>expandFiles(File baseDir, String line)voidfireFrameworkStarted()static Collection<File>getBundleFiles(File baseDir, String bundles, String delim)static ClassLoadergetDefaultClassLoader()EnvironmentgetEnvironment()ClassLoadergetLoader()OSGiAdaptergetOsgi()booleanisStarted()static FilemakeFile(File baseDir, String path)voidshutdown()voidstart()
-
-
-
Field Detail
-
loader
protected final ClassLoader loader
-
env
protected final Environment env
-
-
Constructor Detail
-
NuxeoApp
public NuxeoApp()
-
NuxeoApp
public NuxeoApp(File home)
-
NuxeoApp
public NuxeoApp(File home, ClassLoader loader)
-
-
Method Detail
-
getDefaultClassLoader
public static ClassLoader getDefaultClassLoader()
-
getLoader
public ClassLoader getLoader()
-
getEnvironment
public Environment getEnvironment()
-
deployBundles
public void deployBundles(String bundlePath) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleExceptionIOException
-
deployBundles
public void deployBundles(File baseDir, String bundlePath) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleExceptionIOException
-
deployBundles
public void deployBundles(Collection<File> files) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleExceptionIOException
-
deployBundle
public void deployBundle(File file) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleExceptionIOException
-
start
public void start()
-
isStarted
public boolean isStarted()
-
getOsgi
public OSGiAdapter getOsgi()
-
shutdown
public void shutdown() throws IOException- Throws:
IOException
-
getBundleFiles
public static Collection<File> getBundleFiles(File baseDir, String bundles, String delim) throws IOException
- Throws:
IOException
-
fireFrameworkStarted
public void fireFrameworkStarted() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
-