Search in sources :

Example 1 with ObjectToString

use of org.mule.runtime.core.internal.transformer.simple.ObjectToString in project mule by mulesoft.

the class TypeBasedTransformerResolver method initialise.

@Override
public void initialise() throws InitialisationException {
    try {
        objectToString = new ObjectToString();
        objectToByteArray = new ObjectToByteArray();
        // these are just fallbacks that are not to go
        // into the mule registry
        initialiseIfNeeded(objectToString, muleContext);
        initialiseIfNeeded(objectToByteArray, muleContext);
    } catch (MuleException e) {
        throw new InitialisationException(e, this);
    }
}
Also used : ObjectToByteArray(org.mule.runtime.core.internal.transformer.simple.ObjectToByteArray) ObjectToString(org.mule.runtime.core.internal.transformer.simple.ObjectToString) InitialisationException(org.mule.runtime.api.lifecycle.InitialisationException) MuleException(org.mule.runtime.api.exception.MuleException)

Aggregations

MuleException (org.mule.runtime.api.exception.MuleException)1 InitialisationException (org.mule.runtime.api.lifecycle.InitialisationException)1 ObjectToByteArray (org.mule.runtime.core.internal.transformer.simple.ObjectToByteArray)1 ObjectToString (org.mule.runtime.core.internal.transformer.simple.ObjectToString)1