@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface Filter
A method annotated with @Filter may accept a parameter of type
Message or of the expected
Message payload's type. Any type conversion supported by default or any
Converters registered with the "integrationConversionService" bean will be
applied to the Message payload if necessary. Header values can also be passed
as Message parameters by using the @Header parameter annotation.
The return type of the annotated method must be a boolean (or Boolean).
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
adviceChain |
java.lang.String |
autoStartup |
java.lang.String |
discardChannel |
boolean |
discardWithinAdvice |
java.lang.String |
inputChannel |
java.lang.String |
outputChannel |
java.lang.String |
phase |
Poller[] |
poller |
java.lang.String |
throwExceptionOnRejection |
public abstract java.lang.String inputChannel
public abstract java.lang.String outputChannel
public abstract java.lang.String discardChannel
public abstract java.lang.String throwExceptionOnRejection
public abstract java.lang.String[] adviceChain
public abstract boolean discardWithinAdvice
public abstract java.lang.String autoStartup
public abstract java.lang.String phase
public abstract Poller[] poller
Poller options for a polled endpoint
(PollerMetadata).
This attribute is an array just to allow an empty default (no poller).
Only one Poller element is allowed.