public class Launcher
extends java.lang.Object
| Constructor and Description |
|---|
Launcher() |
Launcher(java.util.Properties p) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBundle(java.io.File resource) |
void |
addSystemPackage(java.lang.String packageName) |
protected void |
deleteFiles(java.io.File wd) |
java.lang.String |
getPropertiesPath() |
static int |
launch(java.lang.String[] args,
java.util.Properties properties,
BundleActivator activator)
Launch with optional properties & optional bundle activator.
|
static void |
main(java.lang.String[] args)
Called from the commandline (and via EmbeddedLauncher in the embedded
mode.)
|
static int |
main(java.lang.String[] args,
java.util.Properties p)
Called from Eclipse launcher? passes the properties
|
void |
report(java.io.PrintStream out) |
protected void |
restart() |
static int |
run(java.lang.String[] args)
Without exit and properties are read.
|
void |
serviceChanged(ServiceEvent event)
Monitor the services.
|
void |
trace(java.lang.String msg,
java.lang.Object... objects) |
int |
translateToError(BundleException e) |
java.lang.String |
translateToMessage(BundleException e) |
public Launcher()
throws java.lang.Exception
java.lang.Exceptionpublic Launcher(java.util.Properties p)
public static void main(java.lang.String[] args)
public static int run(java.lang.String[] args)
throws java.lang.Throwable
java.lang.Throwablepublic static int launch(java.lang.String[] args,
java.util.Properties properties,
BundleActivator activator)
throws java.lang.Throwable
args - properties - the properties or nullactivator - null, or a Bundle Activator that will be called back
before the bundles are started, see
EmbeddedActivatorPhase#BEFORE_BUNDLES_START.java.lang.Throwablepublic static int main(java.lang.String[] args,
java.util.Properties p)
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getPropertiesPath()
protected void restart()
public void addSystemPackage(java.lang.String packageName)
protected void deleteFiles(java.io.File wd)
public void addBundle(java.io.File resource)
public void report(java.io.PrintStream out)
public int translateToError(BundleException e)
public java.lang.String translateToMessage(BundleException e)
public void serviceChanged(ServiceEvent event)
main.thread property then check if it is a Runnable (priority
for backward compatibility) or a Callable<Integer>. If so, we set
it as the main thread runner and call it once the initialization is all
done.public void trace(java.lang.String msg,
java.lang.Object... objects)
Data In Motion GmbH all rights reserved