public class JsonProjectingMethodInterceptorFactory extends Object implements MethodInterceptorFactory
MethodInterceptorFactory
to create a MethodInterceptor
that willConstructor and Description |
---|
JsonProjectingMethodInterceptorFactory(com.jayway.jsonpath.spi.json.JsonProvider jsonProvider,
com.jayway.jsonpath.spi.mapper.MappingProvider mappingProvider)
Creates a new
JsonProjectingMethodInterceptorFactory using the given JsonProvider and
MappingProvider . |
JsonProjectingMethodInterceptorFactory(com.jayway.jsonpath.spi.mapper.MappingProvider mappingProvider)
Creates a new
JsonProjectingMethodInterceptorFactory using the default JsonProvider and the given
MappingProvider . |
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 default JsonProvider
and the given
MappingProvider
.mappingProvider
- must not be null.Configuration.defaultConfiguration()
,
Configuration.jsonProvider()
public JsonProjectingMethodInterceptorFactory(com.jayway.jsonpath.spi.json.JsonProvider jsonProvider, com.jayway.jsonpath.spi.mapper.MappingProvider mappingProvider)
JsonProjectingMethodInterceptorFactory
using the given JsonProvider
and
MappingProvider
.jsonProvider
- must not be null.mappingProvider
- 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–2023 Pivotal Software, Inc.. All rights reserved.