public class RuntimeFeature extends SimpleFeature
| Modifier and Type | Field and Description |
|---|---|
protected DeploymentSet |
deploy |
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 <T> void |
bind0(com.google.inject.Binder binder,
Class<T> type,
ServiceProvider<T> provider) |
protected void |
blacklistComponents(FeaturesRunner aRunner) |
protected void |
cleanupClassLoader() |
void |
configure(FeaturesRunner runner,
com.google.inject.Binder binder)
Configures Guice bindings if any is required by the feature.
|
DeploymentSet |
deployments() |
protected void |
deployTestClassBundles(FeaturesRunner runner)
Deploys bundles specified in the @Bundles annotation.
|
String[] |
getDeployments() |
RuntimeHarness |
getHarness() |
String[] |
getLocalDeployments() |
protected void |
indexBundleResources(FeaturesRunner runner,
Set<String> bundles,
com.google.common.collect.SetMultimap<String,String> resources,
String[] directives) |
void |
initialize(FeaturesRunner runner)
Called when preparing to run the test class.
|
protected void |
resetStaticField(Class<?> clazz,
String name) |
void |
start(FeaturesRunner runner)
Features are initialized.
|
void |
stop(FeaturesRunner runner)
Before exiting the test.
|
afterMethodRun, afterRun, afterTeardown, beforeMethodRun, beforeSetup, testCreatedprotected RuntimeHarness harness
protected final DeploymentSet deploy
protected final Map<Class<?>,ServiceProvider<?>> serviceProviders
public <T> void addServiceProvider(ServiceProvider<T> provider)
public RuntimeHarness getHarness()
public DeploymentSet deployments()
public String[] getDeployments()
public String[] getLocalDeployments()
protected void indexBundleResources(FeaturesRunner runner, Set<String> bundles, com.google.common.collect.SetMultimap<String,String> resources, String[] directives) throws IOException
IOExceptionprotected void deployTestClassBundles(FeaturesRunner runner) throws Exception
Exceptionpublic void initialize(FeaturesRunner runner) throws Exception
RunnerFeatureinitialize in interface RunnerFeatureinitialize in class SimpleFeatureExceptionpublic void start(FeaturesRunner runner) throws Exception
RunnerFeaturestart in interface RunnerFeaturestart in class SimpleFeatureExceptionprotected void blacklistComponents(FeaturesRunner aRunner)
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeaturebeforeRun in interface RunnerFeaturebeforeRun in class SimpleFeatureExceptionpublic void stop(FeaturesRunner runner) throws Exception
RunnerFeaturestop in interface RunnerFeaturestop in class SimpleFeatureExceptionprotected void cleanupClassLoader()
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeatureconfigure in interface RunnerFeatureconfigure in class SimpleFeatureprotected <T> void bind0(com.google.inject.Binder binder,
Class<T> type,
ServiceProvider<T> provider)
Copyright © 2019 Nuxeo SA. All rights reserved.