@Beta public class WrappingInjectorProvider extends java.lang.Object implements IInjectorProvider, IRegistryConfigurator
Constructor and Description |
---|
WrappingInjectorProvider(IInjectorProvider delegate) |
Modifier and Type | Method and Description |
---|---|
protected com.google.inject.Injector |
createInjector() |
IInjectorProvider |
getDelegate() |
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. |
public WrappingInjectorProvider(IInjectorProvider delegate)
protected com.google.inject.Injector createInjector()
public IInjectorProvider getDelegate()
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
public com.google.inject.Injector getInjector()
getInjector
in interface IInjectorProvider