public class RuntimeFeature extends SimpleFeature
Modifier and Type | Field and Description |
---|---|
protected HotDeployer |
deployer |
protected RuntimeDeployment |
deployment |
protected RuntimeHarness |
harness |
protected Map<Class<?>,ServiceProvider<?>> |
serviceProviders
Providers contributed by other features to override the default service provider used for a nuxeo service.
|
Constructor and Description |
---|
RuntimeFeature() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addServiceProvider(ServiceProvider<T> provider) |
void |
beforeRun(FeaturesRunner runner)
Before running tests.
|
protected void |
blacklistComponents(FeaturesRunner aRunner) |
void |
configure(FeaturesRunner runner,
com.google.inject.Binder binder)
Configures Guice bindings if any is required by the feature.
|
RuntimeHarness |
getHarness() |
void |
initialize(FeaturesRunner runner)
Called when preparing to run the test class.
|
org.junit.rules.MethodRule |
onCleanupURLStreamHandlers() |
org.junit.rules.MethodRule |
onMethodDeployment() |
HotDeployer |
registerHandler(HotDeployer.ActionHandler handler) |
void |
start(FeaturesRunner runner)
Features are initialized.
|
void |
stop(FeaturesRunner runner)
Before exiting the test.
|
boolean |
unregisterHandler(HotDeployer.ActionHandler handler) |
afterMethodRun, afterRun, afterTeardown, beforeMethodRun, beforeSetup, testCreated
protected RuntimeHarness harness
protected RuntimeDeployment deployment
protected HotDeployer deployer
protected final Map<Class<?>,ServiceProvider<?>> serviceProviders
public RuntimeFeature()
public <T> void addServiceProvider(ServiceProvider<T> provider)
public RuntimeHarness getHarness()
public void initialize(FeaturesRunner runner) throws Exception
RunnerFeature
initialize
in interface RunnerFeature
initialize
in class SimpleFeature
Exception
public HotDeployer registerHandler(HotDeployer.ActionHandler handler)
public boolean unregisterHandler(HotDeployer.ActionHandler handler)
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
configure
in class SimpleFeature
public void start(FeaturesRunner runner) throws Exception
RunnerFeature
start
in interface RunnerFeature
start
in class SimpleFeature
Exception
public void stop(FeaturesRunner runner) throws Exception
RunnerFeature
stop
in interface RunnerFeature
stop
in class SimpleFeature
Exception
public org.junit.rules.MethodRule onCleanupURLStreamHandlers()
public org.junit.rules.MethodRule onMethodDeployment()
protected void blacklistComponents(FeaturesRunner aRunner)
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeature
beforeRun
in interface RunnerFeature
beforeRun
in class SimpleFeature
Exception
Copyright © 2017 Nuxeo. All rights reserved.