Annotation Interface GlobalChannelInterceptor


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface GlobalChannelInterceptor
ChannelInterceptor components with this annotation will be applied as global channel interceptors using the provided patterns to match channel names.

This annotation can be used at the class level for Component beans and on methods with Bean.

This annotation is an analogue of <int:channel-interceptor/>.

Since:
4.0
Author:
Artem Bilan, Meherzad Lahewala
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The order of the interceptor.
    An array of patterns against which channel names will be matched.
  • Element Details

    • patterns

      String[] patterns
      An array of patterns against which channel names will be matched. Since version 5.0 negative patterns are also supported. A leading '!' negates the pattern match. Default is "*" (all channels).
      Returns:
      The pattern.
      See Also:
      Default:
      {"*"}
    • order

      int order
      The order of the interceptor. Interceptors with negative order values will be placed before any explicit interceptors on the channel; interceptors with positive order values will be placed after explicit interceptors.
      Returns:
      The order.
      Default:
      0