Annotation Type 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
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String DEFAULT_SOURCE  
    • Optional Element Summary

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

      • DEFAULT_SOURCE

        static final java.lang.String DEFAULT_SOURCE
    • Element Detail

      • source

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