Annotation Interface SimpleMessageSubscriber


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface SimpleMessageSubscriber
Designates a class as a simple subscriber of a message bus. This makes it possible to avoid plumbing code for subscribing to topics and use instead ListensTo with MessageBusHelper. An optional source() parameter can be specified to choose a message bus for systems where more than one are available.
Author:
Fabrizio Giudici
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the source that this annotation refers to.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Field Details

  • Element Details

    • source

      @Nonnull String source
      The name of the source that this annotation refers to.
      Returns:
      the source name
      Default:
      "applicationMessageBus"