public final class ChameleonExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
APPLICATION_BUNDLE |
private org.ow2.chameleon.core.Chameleon |
chameleon |
private static ChameleonExecutor |
INSTANCE |
private File |
root |
| Modifier | Constructor and Description |
|---|---|
private |
ChameleonExecutor() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.BundleContext |
context() |
void |
deployApplication()
Builds and deploy the application bundle.
|
void |
deployProbe()
Deploys the `probe` bundle, i.e.
|
private static void |
fixLoggingSystem(File basedir)
Fixes the Chameleon logging configuration to write the logs in the logs/wisdom.log file instead of chameleon.log
file.
|
InVivoRunner |
getInVivoRunnerInstance(Class<?> clazz)
Retrieves the InVivoRunner Factory and creates an instance.
|
static ChameleonExecutor |
instance(File root)
Gets the instance of Chameleon, i.e.
|
private void |
start(File root)
Starts the underlying Chameleon instance.
|
private void |
stop()
Stops the underlying chameleon instance.
|
static void |
stopRunningInstance()
Stops the running Chameleon.
|
private static final String APPLICATION_BUNDLE
private static ChameleonExecutor INSTANCE
private org.ow2.chameleon.core.Chameleon chameleon
private File root
public static ChameleonExecutor instance(File root) throws org.osgi.framework.BundleException, IOException
root - the base directory of the Chameleon.IOException - if the chameleon configuration cannot be read.org.osgi.framework.BundleException - if the chameleon cannot be started.public static void stopRunningInstance()
throws Exception
Exception - if the Chameleon instance cannot be stopped.private void start(File root) throws org.osgi.framework.BundleException, IOException
root - the base directory of the Chameleon.IOException - if the chameleon configuration cannot be read.org.osgi.framework.BundleException - if the chameleon cannot be started.public org.osgi.framework.BundleContext context()
private void stop()
throws Exception
Exception - if it cannot be stopped.public void deployProbe()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleException - if the probe bundle cannot be started.public void deployApplication()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic InVivoRunner getInVivoRunnerInstance(Class<?> clazz) throws org.junit.runners.model.InitializationError, ClassNotFoundException, IOException
org.junit.runners.model.InitializationErrorClassNotFoundExceptionIOExceptionprivate static void fixLoggingSystem(File basedir)
basedir - the base directory of the chameleonCopyright © 2013–2014 Wisdom Framework. All rights reserved.