public class JsonProjectingMethodInterceptorFactory extends Object implements MethodInterceptorFactory
MethodInterceptorFactory
to create a MethodInterceptor
that willConstructor and Description |
---|
JsonProjectingMethodInterceptorFactory(com.jayway.jsonpath.spi.mapper.MappingProvider mappingProvider)
Creates a new
JsonProjectingMethodInterceptorFactory using the given ObjectMapper . |
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. |
public JsonProjectingMethodInterceptorFactory(com.jayway.jsonpath.spi.mapper.MappingProvider mappingProvider)
JsonProjectingMethodInterceptorFactory
using the given ObjectMapper
.mapper
- must not be null.public MethodInterceptor createMethodInterceptor(Object source, Class<?> targetType)
MethodInterceptorFactory
MethodInterceptor
to be used for the given source object and target type.createMethodInterceptor
in interface MethodInterceptorFactory
source
- will never be null.targetType
- will never be null.public boolean supports(Object source, Class<?> targetType)
MethodInterceptorFactory
MethodInterceptor
for proxy of the
given target type.supports
in interface MethodInterceptorFactory
source
- will never be null.targetType
- will never be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.