Package de.gebit.integrity.wrapper
Interface WrapperFactory
-
- All Known Implementing Classes:
DefaultWrapperFactory
public interface WrapperFactoryThe wrapper factory is responsible for the actual creation of theFixtureWrapperandCustomOperationWrapperinstances. This also includes instantiation of the fixture/operation classes.- Author:
- Rene Schneider - initial API and implementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomOperationWrappernewCustomOperationWrapper(CustomOperation anOperation)Creates a newCustomOperationWrapperfor the givenCustomOperation.FixtureWrapper<?>newFixtureWrapper(MethodReference aFixtureMethodRef)Creates a newFixtureWrapperfor the givenMethodReference.
-
-
-
Method Detail
-
newFixtureWrapper
FixtureWrapper<?> newFixtureWrapper(MethodReference aFixtureMethodRef) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Creates a newFixtureWrapperfor the givenMethodReference.- Parameters:
aFixtureMethodRef- the fixture method to instantiate- Returns:
- the
FixtureWrapperinstance - Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessException
-
newCustomOperationWrapper
CustomOperationWrapper newCustomOperationWrapper(CustomOperation anOperation) throws ClassNotFoundException
Creates a newCustomOperationWrapperfor the givenCustomOperation.- Parameters:
anOperation- the operation to instantiate- Returns:
- the
CustomOperationWrapperinstance - Throws:
ClassNotFoundException
-
-