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

Inline metatype information instead of using metatype.properties files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Best practices
    • None

    Description

      From V1.14.0 (FELIX-4101), the maven-scr-plugin can use metatype information provided in Java code annotations, instead of requiring a separate metatype.properties file. This also requires the org.apache.felix.metatype bundle V1.0.8 or later at runtime.

      With this, we should inline metatype information instead of using metatype.properties files - this moves the labels and names closer to their use, and it's still possible to localize them if needed.

      Examples:

      @Component(metatype=true, label="Some Label", description="Something")

      @Property(label="The property", description="Its description")

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: