Annotation Interface EnablePublisher


Provides the registration for the PublisherAnnotationBeanPostProcessor to allow the use of the Publisher annotation. In addition the default-publisher-channel name can be configured as the defaultChannel() of this annotation.
Since:
4.0
Author:
Artem Bilan
  • Element Details

    • value

      @AliasFor("defaultChannel") String value
      Alias for the defaultChannel() attribute. The default-publisher-channel name.
      Returns:
      the channel bean name.
      Default:
      ""
    • defaultChannel

      @AliasFor("value") String defaultChannel
      The default-publisher-channel name.
      Returns:
      the channel bean name.
      Since:
      5.1.3
      Default:
      ""
    • proxyTargetClass

      boolean proxyTargetClass
      Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
      Returns:
      whether proxy target class or not.
      Since:
      5.1.3
      Default:
      false
    • order

      int order
      Indicate the order in which the PublisherAnnotationBeanPostProcessor should be applied.

      The default is Ordered.LOWEST_PRECEDENCE in order to run after all other post-processors, so that it can add an advisor to existing proxies rather than double-proxy.

      Returns:
      the order for the bean post-processor.
      Since:
      5.1.3
      Default:
      2147483647