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

Allow @Property without name in constructors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ipojo-runtime-1.10.1
    • ipojo-runtime-1.11.0
    • iPOJO
    • None

    Description

      @Property can be used to inject properties within constructor parameters. However, they currecntly require a name:

      public FooImpl(@Property(name="message") String message)

      { ... }

      The name attribute should not be required. By relying on FELIX-4215, we should be able to infere the property's name from the parameter name.

      For example,

      public FooImpl(@Property String message) { ... }

      would be equivalent to the previous snippet.

      Attachments

        Activity

          People

            clement.escoffier Clement Escoffier
            clement.escoffier Clement Escoffier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: