org.mule.tck.testmodels.fruit
Class FruitBowlToFruitBasket

java.lang.Object
  extended by org.mule.transformer.AbstractTransformer
      extended by org.mule.tck.testmodels.fruit.FruitBowlToFruitBasket
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, Disposable, Initialisable, NameableObject, NamedObject, MessageProcessor, DiscoverableTransformer, Transformer, EndpointAware

public class FruitBowlToFruitBasket
extends AbstractTransformer
implements DiscoverableTransformer

Converts a FruitBowl to a FruitBasket (for testing obviously :)


Field Summary
 
Fields inherited from class org.mule.transformer.AbstractTransformer
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
 
Fields inherited from interface org.mule.api.transformer.DiscoverableTransformer
DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
FruitBowlToFruitBasket()
           
 
Method Summary
protected  Object doTransform(Object src, String encoding)
           
 int getPriorityWeighting()
          If 2 or more discoverable transformers are equal, this value can be used to select the correct one
 void setPriorityWeighting(int weighting)
          If 2 or more discoverable transformers are equal, this value can be used to select the correct one
 
Methods inherited from class org.mule.transformer.AbstractTransformer
checkReturnClass, dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FruitBowlToFruitBasket

public FruitBowlToFruitBasket()
Method Detail

doTransform

protected Object doTransform(Object src,
                             String encoding)
                      throws TransformerException
Specified by:
doTransform in class AbstractTransformer
Throws:
TransformerException

getPriorityWeighting

public int getPriorityWeighting()
If 2 or more discoverable transformers are equal, this value can be used to select the correct one

Specified by:
getPriorityWeighting in interface DiscoverableTransformer
Returns:
the priority weighting for this transformer. This is a value between DiscoverableTransformer.MIN_PRIORITY_WEIGHTING and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING.

setPriorityWeighting

public void setPriorityWeighting(int weighting)
If 2 or more discoverable transformers are equal, this value can be used to select the correct one

Specified by:
setPriorityWeighting in interface DiscoverableTransformer
Parameters:
weighting - the priority weighting for this transformer. This is a value between DiscoverableTransformer.MIN_PRIORITY_WEIGHTING and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING.


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