Package org.apache.camel.processor
Class ContractAdvice
java.lang.Object
org.apache.camel.processor.ContractAdvice
- All Implemented Interfaces:
org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
public class ContractAdvice
extends Object
implements org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
A
is different from
current IN message type, camel internal processor look for a Transformer which transforms from the current message
type to the expected message type before routing. After routing, if the output type declared by
is different from current OUT message (or IN message if no OUT),
camel look for a Transformer and apply.
CamelInternalProcessorAdvice
which applies Transformer
and Validator
according to the data
type Contract.
The default camel Message
implements DataTypeAware
which holds a DataType
to indicate current
message type. If the input type declared by
invalid reference
org.apache.camel.model.InputTypeDefinition
invalid reference
org.apache.camel.model.OutputTypeDefinition
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ContractAdvice
public ContractAdvice(org.apache.camel.spi.Contract contract)
-
-
Method Details
-
before
-
after
-
hasState
public boolean hasState()- Specified by:
hasState
in interfaceorg.apache.camel.spi.CamelInternalProcessorAdvice<Object>
-