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

Support static service properties that are not mirrored into fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • iPOJO-1.6.0
    • iPOJO-1.8.0
    • iPOJO
    • None

    Description

      Sometimes you want to add static service properties to a component that you don't need to mirror in fields. This is of particular use when the component uses a generic specification (i.e. JComponent.class) but uses service properties to further classify the specification (i.e. name=foo;location=toolbar). An example of annotating a class for this would be

      @Provides{ specifications =

      {JComponent.class}

      , properties = {@ServiceProperty

      {name="name", value="foo"}

      ,@ServiceProperty

      {name="location", value="toolbar"}

      }} )

      Attachments

        Activity

          People

            clement.escoffier Clement Escoffier
            pdonald Peter Donald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: