Interface QtafMethodInterceptor
- All Known Implementing Classes:
QtafAfterMethodMethodInterceptorBuilder,QtafAfterSuiteMethodInterceptorBuilder,QtafAfterTestMethodInterceptorBuilder,QtafBeforeMethodMethodInterceptorBuilder,QtafBeforeSuiteMethodInterceptorBuilder,QtafBeforeTestMethodInterceptorBuilder,QtafStepMethodInterceptorBuilder
public interface QtafMethodInterceptor
This is an interface for classes providing Guice method interceptors.
A method interceptor can execute code before and after methods.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.matcher.Matcher<? super Class<?>>Get a matcher that describes which classes should be intercepted.org.aopalliance.intercept.MethodInterceptorGet an instance of MethodInterceptor that contains the logic for intercepting methods.com.google.inject.matcher.Matcher<? super Method>Get a matcher that describes which methods should be intercepted.
-
Method Details
-
getClassMatcher
com.google.inject.matcher.Matcher<? super Class<?>> getClassMatcher()Get a matcher that describes which classes should be intercepted.- Returns:
- class matcher
-
getMethodMatcher
com.google.inject.matcher.Matcher<? super Method> getMethodMatcher()Get a matcher that describes which methods should be intercepted.- Returns:
- method matcher
-
getMethodInterceptor
org.aopalliance.intercept.MethodInterceptor getMethodInterceptor()Get an instance of MethodInterceptor that contains the logic for intercepting methods.- Returns:
- MethodInterceptor object
-