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 Summary
Modifier and TypeOptional ElementDescriptionThedefault-publisher-channel
name.int
Indicate the order in which thePublisherAnnotationBeanPostProcessor
should be applied.boolean
Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.Alias for thedefaultChannel()
attribute.
-
Element Details
-
value
Alias for thedefaultChannel()
attribute. Thedefault-publisher-channel
name.- Returns:
- the channel bean name.
- Default:
- ""
-
defaultChannel
Thedefault-publisher-channel
name.- Returns:
- the channel bean name.
- Since:
- 5.1.3
- Default:
- ""
-
proxyTargetClass
boolean 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
-
order
int orderIndicate the order in which thePublisherAnnotationBeanPostProcessor
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
-