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, testCreatedprotected 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
RunnerFeatureinitialize in interface RunnerFeatureinitialize in class SimpleFeatureExceptionpublic HotDeployer registerHandler(HotDeployer.ActionHandler handler)
public boolean unregisterHandler(HotDeployer.ActionHandler handler)
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeatureconfigure in interface RunnerFeatureconfigure in class SimpleFeaturepublic void start(FeaturesRunner runner) throws Exception
RunnerFeaturestart in interface RunnerFeaturestart in class SimpleFeatureExceptionpublic void stop(FeaturesRunner runner) throws Exception
RunnerFeaturestop in interface RunnerFeaturestop in class SimpleFeatureExceptionpublic org.junit.rules.MethodRule onCleanupURLStreamHandlers()
public org.junit.rules.MethodRule onMethodDeployment()
protected void blacklistComponents(FeaturesRunner aRunner)
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeaturebeforeRun in interface RunnerFeaturebeforeRun in class SimpleFeatureExceptionCopyright © 2018 Nuxeo. All rights reserved.