public class TypeSafeTransformer extends Object
ValueResolver to handle transformation of values| Constructor and Description |
|---|
TypeSafeTransformer(TransformationService transformationService) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
transform(Object value,
org.mule.runtime.api.metadata.DataType valueDataType,
org.mule.runtime.api.metadata.DataType expectedDataType)
Given a value) it will try to transform it to the expected type defined in the {@code expectedDataType}
|
public TypeSafeTransformer(TransformationService transformationService)
public <T> T transform(Object value, org.mule.runtime.api.metadata.DataType valueDataType, org.mule.runtime.api.metadata.DataType expectedDataType) throws MessagingException, MessageTransformerException, TransformerException
value - the value to transformvalueDataType - the value's DataTypeexpectedDataType - the expected type's DataTypeevent - the event to perform the transformationMessagingException - If could not be able to find a proper transformer do obtain the desired typeMessageTransformerException - If a problem occurs transforming the valueTransformerException - If a problem occurs transforming the valueCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.