public class MapToBean extends AbstractTransformer implements DiscoverableTransformer
getReturnDataType().getType() and populates values of a Map as bean
properties on the object. The bean class name can also be passed in as a property on the Map (which gets removed once read).
The CLASS_PROPERTY should be set as a fully qualified class name string.ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_PROPERTY
"className"
|
logger, muleContext, name, sourceTypesDEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING| Constructor and Description |
|---|
MapToBean() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doTransform(Object src,
Charset encoding) |
int |
getPriorityWeighting()
If two or more discoverable transformers are equal, this value can be used to select the correct one
|
void |
initialise()
Template method where deriving classes can do any initialisation after the properties have been set on this transformer
|
void |
setPriorityWeighting(int weighting)
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
dispose, generateTransformerName, getName, getReturnDataType, getSourceDataTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, process, registerSourceType, resolveEncoding, setAllowNullReturn, setIgnoreBadInput, setMuleContext, setName, setReturnDataType, toString, transform, transform, unregisterSourceTypegetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypegetReturnDataType, getSourceDataTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, setReturnDataType, transform, transformsetMuleContextpublic static final String CLASS_PROPERTY
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
AbstractTransformerinitialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractTransformerorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected Object doTransform(Object src, Charset encoding) throws TransformerException
doTransform in class AbstractTransformerTransformerExceptionpublic int getPriorityWeighting()
ConvertergetPriorityWeighting in interface ConverterConverter.MIN_PRIORITY_WEIGHTING and
Converter.MAX_PRIORITY_WEIGHTING.public void setPriorityWeighting(int weighting)
ConvertersetPriorityWeighting in interface Converterweighting - the priority weighting for this transformer. This is a value between Converter.MIN_PRIORITY_WEIGHTING and
Converter.MAX_PRIORITY_WEIGHTING.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.