public class XtextInjectorProvider extends Object implements IInjectorProvider, IRegistryConfigurator
| Modifier and Type | Field and Description |
|---|---|
protected com.google.inject.Injector |
injector |
protected GlobalRegistries.GlobalStateMemento |
stateAfterInjectorCreation |
protected GlobalRegistries.GlobalStateMemento |
stateBeforeInjectorCreation |
| Constructor and Description |
|---|
XtextInjectorProvider() |
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.Injector |
getInjector() |
void |
restoreRegistry()
Complement method to
IRegistryConfigurator.setupRegistry() to be called after any test execution. |
void |
setupRegistry()
Enables the same behaviour such as junit's
Before which is used to prepare or setup some
required state expected by the actual test method execution. |
protected GlobalRegistries.GlobalStateMemento stateBeforeInjectorCreation
protected GlobalRegistries.GlobalStateMemento stateAfterInjectorCreation
protected com.google.inject.Injector injector
public com.google.inject.Injector getInjector()
getInjector in interface IInjectorProviderpublic void restoreRegistry()
IRegistryConfiguratorIRegistryConfigurator.setupRegistry() to be called after any test execution.restoreRegistry in interface IRegistryConfiguratorpublic void setupRegistry()
IRegistryConfiguratorBefore which is used to prepare or setup some
required state expected by the actual test method execution.setupRegistry in interface IRegistryConfiguratorCopyright © 2016. All Rights Reserved.