Package de.gebit.integrity.wrapper
Interface WrapperFactory
-
- All Known Implementing Classes:
DefaultWrapperFactory
public interface WrapperFactory
The wrapper factory is responsible for the actual creation of theFixtureWrapper
andCustomOperationWrapper
instances. 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 CustomOperationWrapper
newCustomOperationWrapper(CustomOperation anOperation)
Creates a newCustomOperationWrapper
for the givenCustomOperation
.FixtureWrapper<?>
newFixtureWrapper(MethodReference aFixtureMethodRef)
Creates a newFixtureWrapper
for the givenMethodReference
.
-
-
-
Method Detail
-
newFixtureWrapper
FixtureWrapper<?> newFixtureWrapper(MethodReference aFixtureMethodRef) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
Creates a newFixtureWrapper
for the givenMethodReference
.- Parameters:
aFixtureMethodRef
- the fixture method to instantiate- Returns:
- the
FixtureWrapper
instance - Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
-
newCustomOperationWrapper
CustomOperationWrapper newCustomOperationWrapper(CustomOperation anOperation) throws java.lang.ClassNotFoundException
Creates a newCustomOperationWrapper
for the givenCustomOperation
.- Parameters:
anOperation
- the operation to instantiate- Returns:
- the
CustomOperationWrapper
instance - Throws:
java.lang.ClassNotFoundException
-
-