Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5010

Sling Models: Stale StaticInjectionAnnotationProcesssorFactory list depending on bundle startup order

    XMLWordPrintableJSON

Details

    Description

      scenario:

      • sling models impl 1.2.0
      • another bundle providing custom sling model annotations with a custom StaticInjectAnnotationProcessorFactory implementation
      • a sling model annotated with this custom annotation that has an flag optional = true

      depending on startup order the optional flag is evaluated as true or false. if one of the bundles is restarted the flag is evaluated correctly.

      reason: depending on startup order the model may get added to the modeladapterfactory before the StaticInjectAnnotationProcessorFactory is registered. than the optional flag is not evaluated correctly. if the StaticInjectAnnotationProcessorFactory is registered a few moments later the (wrong) result is still cached in the ModelClass instance.

      Attachments

        Activity

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: