Annotation Interface EnablePublisher
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Import(PublisherRegistrar.class)
public @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
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionThedefault-publisher-channelname.intIndicate the order in which thePublisherAnnotationBeanPostProcessorshould be applied.booleanIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.Alias for thedefaultChannel()attribute.
- 
Element Details- 
valueAlias for thedefaultChannel()attribute. Thedefault-publisher-channelname.- Returns:
- the channel bean name.
 - Default:
- ""
 
- 
defaultChannel
- 
proxyTargetClassboolean proxyTargetClassIndicate 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
 
- 
orderint orderIndicate the order in which thePublisherAnnotationBeanPostProcessorshould be applied.The default is Ordered.LOWEST_PRECEDENCEin 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
 
 
-