|
SwitchYard: Core 0.6.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.switchyard.transform.TransformSequence
public final class TransformSequence
Transformation sequence/pipeline.
Allows the stringing together of a sequence of transformers and then associating that with a Message context e.g.TransformSequence.from("a").to("b").to("c').associateWith(messageContext);
Method Summary | |
---|---|
void |
apply(Message message,
TransformerRegistry registry)
Apply this TransformSequence to the supplied Message instance. |
static void |
applySequence(Exchange exchange,
TransformerRegistry registry)
Apply the active exchange transformation sequence to the supplied Exchange Message. |
static boolean |
assertTransformsApplied(Exchange exchange)
Utility assertion method for checking if the source to destination transformations have been applied to the Exchange. |
void |
associateWith(Exchange exchange,
Scope scope)
Associate this instance with the supplied message context. |
static TransformSequence |
from(QName typeName)
Start the transformation sequence. |
static QName |
getCurrentMessageType(Exchange exchange)
Get the current message type for the specified exchange. |
static QName |
getTargetMessageType(Exchange exchange)
Get the target message type for the specified exchange phase. |
TransformSequence |
to(QName typeName)
Add to the transformation sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void associateWith(Exchange exchange, Scope scope)
exchange
- associate the transform to this exchangescope
- associate the transform with this scopepublic static TransformSequence from(QName typeName)
typeName
- The from type.
public TransformSequence to(QName typeName)
typeName
- The from type.
public void apply(Message message, TransformerRegistry registry)
TransformSequence
to the supplied Message
instance.
message
- Message instance.registry
- Transformation Registry.public static QName getCurrentMessageType(Exchange exchange)
exchange
- The exchange.
public static QName getTargetMessageType(Exchange exchange)
exchange
- The exchange.
public static boolean assertTransformsApplied(Exchange exchange)
exchange
- The exchange instance.
public static void applySequence(Exchange exchange, TransformerRegistry registry)
exchange
- The Exchange instance.registry
- The transformation registry.
|
SwitchYard: Core 0.6.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |