org.mule.transformer
Class AbstractDiscoverableTransformer
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.transformer.AbstractDiscoverableTransformer
- All Implemented Interfaces:
- Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer
- Direct Known Subclasses:
- HttpRequestToByteArray, HttpRequestToInputStream
public abstract class AbstractDiscoverableTransformer
- extends AbstractTransformer
- implements DiscoverableTransformer
Method Summary |
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, doTransform, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType |
AbstractDiscoverableTransformer
public AbstractDiscoverableTransformer()
getPriorityWeighting
public int getPriorityWeighting()
- Description copied from interface:
DiscoverableTransformer
- 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)
- Description copied from interface:
DiscoverableTransformer
- 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-2009 MuleSource, Inc.. All Rights Reserved.