Package org.apache.camel
Annotation Type Pattern
-
@Retention(RUNTIME) @Documented @Target({TYPE,METHOD}) public @interface Pattern
Marks a method as having a specific kind ofExchangePattern
for use with Bean Integration to overload the default value which isExchangePattern.InOut
for request/reply if no annotations are used. There are abbreviation annotations likeInOnly
orInOut
which are typically used for the common message exchange patterns. You could also add this annotation onto your own custom annotation to default the message exchange pattern when your own annotation is added to a method as in this example. This annotation can be added to individual methods or added to a class or interface to act as a default for all methods within the class or interface. See the using exchange pattern annotations for more details on how the overloading rules work.- See Also:
InOut
,InOnly
,ExchangePattern
,Exchange.getPattern()
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description ExchangePattern
value
Specifies the exchange pattern to be used for this method
-
-
-
Element Detail
-
value
ExchangePattern value
Specifies the exchange pattern to be used for this method
-
-