org.mule.transformer
Class TransformerUtils

java.lang.Object
  extended by org.mule.transformer.TransformerUtils

public class TransformerUtils
extends java.lang.Object


Nested Class Summary
protected static interface TransformerUtils.TransformerSource
           
 
Field Summary
static java.lang.String COMMA
           
 
Constructor Summary
TransformerUtils()
           
 
Method Summary
static Transformer firstOrNull(java.util.List<Transformer> transformers)
           
static java.util.List<Transformer> getDefaultInboundTransformers(TransportServiceDescriptor serviceDescriptor, ImmutableEndpoint endpoint)
           
static java.util.List<Transformer> getDefaultOutboundTransformers(TransportServiceDescriptor serviceDescriptor, ImmutableEndpoint endpoint)
           
static java.util.List<Transformer> getDefaultResponseTransformers(TransportServiceDescriptor serviceDescriptor, ImmutableEndpoint endpoint)
           
static java.util.List<Transformer> getTransformers(java.lang.String names, MuleContext muleContext)
          Builds a list of Transformers.
protected static java.util.List<Transformer> getTransformersFromSource(TransformerUtils.TransformerSource source)
           
static void initialiseAllTransformers(java.util.List<Transformer> transformers)
           
static boolean isSourceTypeSupportedByFirst(java.util.List<Transformer> transformers, java.lang.Class clazz)
           
static java.lang.String toString(java.util.List<Transformer> transformers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMA

public static final java.lang.String COMMA
See Also:
Constant Field Values
Constructor Detail

TransformerUtils

public TransformerUtils()
Method Detail

initialiseAllTransformers

public static void initialiseAllTransformers(java.util.List<Transformer> transformers)
                                      throws InitialisationException
Throws:
InitialisationException

toString

public static java.lang.String toString(java.util.List<Transformer> transformers)

firstOrNull

public static Transformer firstOrNull(java.util.List<Transformer> transformers)

isSourceTypeSupportedByFirst

public static boolean isSourceTypeSupportedByFirst(java.util.List<Transformer> transformers,
                                                   java.lang.Class clazz)

getTransformersFromSource

protected static java.util.List<Transformer> getTransformersFromSource(TransformerUtils.TransformerSource source)

getDefaultInboundTransformers

public static java.util.List<Transformer> getDefaultInboundTransformers(TransportServiceDescriptor serviceDescriptor,
                                                                        ImmutableEndpoint endpoint)

getDefaultResponseTransformers

public static java.util.List<Transformer> getDefaultResponseTransformers(TransportServiceDescriptor serviceDescriptor,
                                                                         ImmutableEndpoint endpoint)

getDefaultOutboundTransformers

public static java.util.List<Transformer> getDefaultOutboundTransformers(TransportServiceDescriptor serviceDescriptor,
                                                                         ImmutableEndpoint endpoint)

getTransformers

public static java.util.List<Transformer> getTransformers(java.lang.String names,
                                                          MuleContext muleContext)
                                                   throws DefaultMuleException
Builds a list of Transformers.

Parameters:
names - - a list of transformers separated by commans
muleContext - the current muleContext. This is used to look up transformers in the registry
Returns:
a list (possibly empty) of transformers or
Throws:
DefaultMuleException - if any of the transformers cannot be found


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.