org.mule.transformer.simple
Class BeanToMap
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.transformer.simple.BeanToMap
- All Implemented Interfaces:
- MuleContextAware, MuleContextNotificationListener<MuleContextNotification>, ServerNotificationListener<MuleContextNotification>, Disposable, Initialisable, NamedObject, MessageProcessor, DiscoverableTransformer, Transformer, EndpointAware
public class BeanToMap
- extends AbstractTransformer
- implements DiscoverableTransformer
Conversts a simple bean object to a Map. every property on the bean will become an entry in the
result Map
. Note that only exposed bean properties with getter and setter methods will be
added to the map.
Methods inherited from class org.mule.transformer.AbstractTransformer |
checkReturnClass, dispose, generateTransformerName, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, onNotification, process, registerSourceType, registerSourceType, setAllowNullReturn, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, transform, unregisterSourceType, unregisterSourceType |
BeanToMap
public BeanToMap()
doTransform
protected Object doTransform(Object src,
String encoding)
throws TransformerException
- Specified by:
doTransform
in class AbstractTransformer
- Throws:
TransformerException
getPriorityWeighting
public int getPriorityWeighting()
- Description copied from interface:
DiscoverableTransformer
- If 2 or more discoverable transformers are equal, this value can be used to select the correct one
- Specified by:
getPriorityWeighting
in interface DiscoverableTransformer
- Returns:
- the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.
setPriorityWeighting
public void setPriorityWeighting(int weighting)
- Description copied from interface:
DiscoverableTransformer
- If 2 or more discoverable transformers are equal, this value can be used to select the correct one
- Specified by:
setPriorityWeighting
in interface DiscoverableTransformer
- Parameters:
weighting
- the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.