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 Environment
env
protected ClassLoader
loader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deployBundle(File file)
void
deployBundles(File baseDir, String bundlePath)
void
deployBundles(String bundlePath)
void
deployBundles(Collection<File> files)
static List<File>
expandFiles(File baseDir, String line)
void
fireFrameworkStarted()
static Collection<File>
getBundleFiles(File baseDir, String bundles, String delim)
static ClassLoader
getDefaultClassLoader()
Environment
getEnvironment()
ClassLoader
getLoader()
OSGiAdapter
getOsgi()
boolean
isStarted()
static File
makeFile(File baseDir, String path)
void
shutdown()
void
start()
-
-
-
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.BundleException
IOException
-
deployBundles
public void deployBundles(File baseDir, String bundlePath) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleException
IOException
-
deployBundles
public void deployBundles(Collection<File> files) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleException
IOException
-
deployBundle
public void deployBundle(File file) throws org.osgi.framework.BundleException, IOException
- Throws:
org.osgi.framework.BundleException
IOException
-
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
-
-