public class XtextInjectorProvider extends java.lang.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 IInjectorProvider
public void restoreRegistry()
IRegistryConfigurator
IRegistryConfigurator.setupRegistry()
to be called after any test execution.restoreRegistry
in interface IRegistryConfigurator
public void setupRegistry()
IRegistryConfigurator
Before
which is used to prepare or setup some
required state expected by the actual test method execution.setupRegistry
in interface IRegistryConfigurator