public class JAXBUnmarshallerTransformer extends AbstractTransformer
Object
. If a specific returnType is
set and no external JAXBContext
is set on the transformer,
then a JAXBContext
will be created using the returnType.Modifier and Type | Field and Description |
---|---|
protected JAXBContext |
jaxbContext |
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
JAXBUnmarshallerTransformer() |
JAXBUnmarshallerTransformer(JAXBContext jaxbContext,
DataType<?> returnType) |
Modifier and Type | Method and Description |
---|---|
protected Object |
doTransform(Object src,
String outputEncoding) |
JAXBContext |
getJaxbContext() |
void |
initialise()
Template method where deriving classes can do any initialisation after the
properties have been set on this transformer
|
void |
setJaxbContext(JAXBContext jaxbContext) |
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, transform, unregisterSourceType, unregisterSourceType
protected JAXBContext jaxbContext
public JAXBUnmarshallerTransformer()
public JAXBUnmarshallerTransformer(JAXBContext jaxbContext, DataType<?> returnType)
public void initialise() throws InitialisationException
AbstractTransformer
initialise
in interface Initialisable
initialise
in class AbstractTransformer
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected Object doTransform(Object src, String outputEncoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public JAXBContext getJaxbContext()
public void setJaxbContext(JAXBContext jaxbContext)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.