public class JsonMapperResolver extends org.mule.config.transformer.AbstractAnnotatedTransformerArgumentResolver
ObjectMapper into a method that requires it.
A shared ObjectMapper context can be created for the application and stored in the registry, this will get injected
into any transform methods that add ObjectMapper to the method signature.
If there is no shared Object Mapper one will be created for the transformer using the return type as the Json root element.| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATIONS_PACKAGE_NAME |
ignoredPackages, loggerPHASE_NAME| Constructor and Description |
|---|
JsonMapperResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createArgument(Class<?> annotatedType,
MuleContext context) |
protected String |
getAnnotationsPackageName() |
protected Class<?> |
getArgumentClass() |
dispose, findAnnotation, getMatchingClasses, getNonMatchingClasses, isNonMatching, resolvepublic static final String ANNOTATIONS_PACKAGE_NAME
protected Class<?> getArgumentClass()
getArgumentClass in class org.mule.config.transformer.AbstractAnnotatedTransformerArgumentResolverprotected Object createArgument(Class<?> annotatedType, MuleContext context) throws Exception
createArgument in class org.mule.config.transformer.AbstractAnnotatedTransformerArgumentResolverExceptionprotected String getAnnotationsPackageName()
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.