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.InjectorinjectorTheInjectorto use for injection of dependencies into the new wrapper.protected ModelCheckermodelCheckerThe model checker.
-
Constructor Summary
Constructors Constructor Description DefaultWrapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomOperationWrappernewCustomOperationWrapper(CustomOperation anOperation)Creates a newCustomOperationWrapperfor the givenCustomOperation.FixtureWrapper<?>newFixtureWrapper(MethodReference aFixtureMethodRef)Creates a newFixtureWrapperfor the givenMethodReference.
-
-
-
Field Detail
-
injector
@Inject protected com.google.inject.Injector injector
TheInjectorto 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:WrapperFactoryCreates a newFixtureWrapperfor the givenMethodReference.- Specified by:
newFixtureWrapperin interfaceWrapperFactory- Parameters:
aFixtureMethodRef- the fixture method to instantiate- Returns:
- the
FixtureWrapperinstance - Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessException
-
newCustomOperationWrapper
public CustomOperationWrapper newCustomOperationWrapper(CustomOperation anOperation) throws ClassNotFoundException
Description copied from interface:WrapperFactoryCreates a newCustomOperationWrapperfor the givenCustomOperation.- Specified by:
newCustomOperationWrapperin interfaceWrapperFactory- Parameters:
anOperation- the operation to instantiate- Returns:
- the
CustomOperationWrapperinstance - Throws:
ClassNotFoundException
-
-