org.mule.transformer.graph
Class GraphTransformerResolver

java.lang.Object
  extended by org.mule.transformer.graph.GraphTransformerResolver
All Implemented Interfaces:
TransformerResolver

public class GraphTransformerResolver
extends Object
implements TransformerResolver


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mule.api.registry.TransformerResolver
TransformerResolver.RegistryAction
 
Constructor Summary
GraphTransformerResolver()
           
 
Method Summary
 Transformer resolve(DataType<?> source, DataType<?> result)
          Responsible for finding a transformer with the given criteria.
 void transformerChange(Transformer transformer, TransformerResolver.RegistryAction registryAction)
          A callback that is called when a transformer is registered or unregistered from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphTransformerResolver

public GraphTransformerResolver()
Method Detail

resolve

public Transformer resolve(DataType<?> source,
                           DataType<?> result)
                    throws ResolverException
Description copied from interface: TransformerResolver
Responsible for finding a transformer with the given criteria. Note that if a transformer is not found null should be return, an exception must NOT be thrown.

Specified by:
resolve in interface TransformerResolver
Parameters:
source - information about the source object including the object iself
result - information about the result object to transform to
Returns:
a transformer from the registry that matches the criteria or null if a transformer was not found
Throws:
ResolverException - Only thrown if an exception is thrown during the search, this exception will just be a wrapper

transformerChange

public void transformerChange(Transformer transformer,
                              TransformerResolver.RegistryAction registryAction)
Description copied from interface: TransformerResolver
A callback that is called when a transformer is registered or unregistered from the registry. This is used in situations where the resolver caches transformers and the cache needs to be updated.

Specified by:
transformerChange in interface TransformerResolver
Parameters:
transformer - the transformer that has changed
registryAction - whether the transformer was added or removed


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