Class DefaultWrapperFactory
java.lang.Object
de.gebit.integrity.runner.wrapper.DefaultWrapperFactory
- All Implemented Interfaces:
WrapperFactory
The basic wrapper factory.
- Author:
- Rene Schneider - initial API and implementation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.inject.InjectorTheInjectorto use for injection of dependencies into the new wrapper.protected ModelCheckerThe model checker. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewCustomOperationWrapper(CustomOperation anOperation) Creates a newCustomOperationWrapperfor the givenCustomOperation.newFixtureWrapper(MethodReference aFixtureMethodRef) Creates a newFixtureWrapperfor the givenMethodReference.
-
Field Details
-
injector
@Inject protected com.google.inject.Injector injectorTheInjectorto use for injection of dependencies into the new wrapper. -
modelChecker
The model checker.
-
-
Constructor Details
-
DefaultWrapperFactory
public DefaultWrapperFactory()
-
-
Method Details
-
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
-