Interface MethodInterceptorFactory
- All Known Implementing Classes:
JsonProjectingMethodInterceptorFactory
public interface MethodInterceptorFactory
SPI to create
MethodInterceptor instances based on the given source object and the target type to produce. To
be registered with a ProxyProjectionFactory to customize the way method executions on projection proxies are
handled.- Since:
- 1.13
- Author:
- Oliver Gierke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateMethodInterceptor(Object source, Class<?> targetType) Returns theMethodInterceptorto be used for the given source object and target type.booleanReturns whether the current factory is supposed to be used to create aMethodInterceptorfor proxy of the given target type.
-
Method Details
-
createMethodInterceptor
Returns theMethodInterceptorto be used for the given source object and target type.- Parameters:
source- will never be null.targetType- will never be null.- Returns:
-
supports
Returns whether the current factory is supposed to be used to create aMethodInterceptorfor proxy of the given target type.- Parameters:
source- will never be null.targetType- will never be null.- Returns:
-