Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1583

@NoAutoStart ignored on interfaces and parent classes

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.5.5
    • 1.2.6
    • Joran
    • None

    Description

      The @NoAutoStart annotation can be used to tell Joran not to start the component even if it implements the Lifecycle interface.

      Unfortunately, the annotation seems to be ignored when not set directly on the component class itself but on an interface or a base/parent class of the hierarchy.

      After digging into the source code, it looks like the NoAutoStart#notMarkedWithNoAutoStart() method could be enhanced to look for the annotation in the hierarchy and implement interfaces in addition the the class itself.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            brenuart Bertrand Renuart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: