Class DefaultWrapperFactory
- java.lang.Object
-
- de.gebit.integrity.runner.wrapper.DefaultWrapperFactory
-
- All Implemented Interfaces:
WrapperFactory
public class DefaultWrapperFactory extends Object implements WrapperFactory
The basic wrapper factory.- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.inject.Injector
injector
TheInjector
to use for injection of dependencies into the new wrapper.protected ModelChecker
modelChecker
The model checker.
-
Constructor Summary
Constructors Constructor Description DefaultWrapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomOperationWrapper
newCustomOperationWrapper(CustomOperation anOperation)
Creates a newCustomOperationWrapper
for the givenCustomOperation
.FixtureWrapper<?>
newFixtureWrapper(MethodReference aFixtureMethodRef)
Creates a newFixtureWrapper
for the givenMethodReference
.
-
-
-
Field Detail
-
injector
@Inject protected com.google.inject.Injector injector
TheInjector
to use for injection of dependencies into the new wrapper.
-
modelChecker
@Inject protected ModelChecker modelChecker
The model checker.
-
-
Method Detail
-
newFixtureWrapper
public FixtureWrapper<?> newFixtureWrapper(MethodReference aFixtureMethodRef) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Description copied from interface:WrapperFactory
Creates a newFixtureWrapper
for the givenMethodReference
.- Specified by:
newFixtureWrapper
in interfaceWrapperFactory
- Parameters:
aFixtureMethodRef
- the fixture method to instantiate- Returns:
- the
FixtureWrapper
instance - Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
-
newCustomOperationWrapper
public CustomOperationWrapper newCustomOperationWrapper(CustomOperation anOperation) throws ClassNotFoundException
Description copied from interface:WrapperFactory
Creates a newCustomOperationWrapper
for the givenCustomOperation
.- Specified by:
newCustomOperationWrapper
in interfaceWrapperFactory
- Parameters:
anOperation
- the operation to instantiate- Returns:
- the
CustomOperationWrapper
instance - Throws:
ClassNotFoundException
-
-