Annotation Type MessageListener


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    @Component
    public @interface MessageListener
    Indicates that an annotated class is a message listener

    This annotation serves as a specialization of @Component, allowing for implementation classes to be inspected for RqueueListener annotated methods.

    See Also:
    Component
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.
    • Element Detail

      • value

        @AliasFor(annotation=org.springframework.stereotype.Component.class)
        java.lang.String value
        The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.
        Returns:
        the suggested component name, if any (or empty String otherwise)
        Default:
        ""