Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2838

Allow classes to be specifed as values for the @Property annotation

    XMLWordPrintableJSON

Details

    Description

      Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.

      It would be nice if one could write something like

      @Property(name=theProperty, classValue=some.special.Operation.class)

      to actually cause a string (or multi-value string) property of the form

      theProperty = "some.special.Operation"

      to be generated.

      One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: