public interface MethodInterceptorFactory
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.ProxyProjectionFactory
Modifier and Type | Method and Description |
---|---|
MethodInterceptor |
createMethodInterceptor(Object source,
Class<?> targetType)
Returns the
MethodInterceptor to be used for the given source object and target type. |
boolean |
supports(Object source,
Class<?> targetType)
Returns whether the current factory is supposed to be used to create a
MethodInterceptor for proxy of the
given target type. |
MethodInterceptor createMethodInterceptor(Object source, Class<?> targetType)
MethodInterceptor
to be used for the given source object and target type.source
- will never be null.targetType
- will never be null.boolean supports(Object source, Class<?> targetType)
MethodInterceptor
for proxy of the
given target type.source
- will never be null.targetType
- will never be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.