Package org.seedstack.seed
Interface SeedInterceptor
-
- All Superinterfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public interface SeedInterceptor extends org.aopalliance.intercept.MethodInterceptorAny class implementing this interface will be detected and registered as a method interceptor that can be potentially applied to all object instances managed by SeedStack.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Predicate<Class<?>>classPredicate()The class predicate which determines classes this interceptor should be applied to.Predicate<Method>methodPredicate()The method predicate which determines method this interceptor should be applied to.
-
-
-
Method Detail
-
classPredicate
Predicate<Class<?>> classPredicate()
The class predicate which determines classes this interceptor should be applied to.- Returns:
- the class predicate.
-
methodPredicate
Predicate<Method> methodPredicate()
The method predicate which determines method this interceptor should be applied to. Only method of classes matching theclassPredicate()are considered.- Returns:
- the class predicate.
-
-