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

Avoid @StaticServiceProperty to be used on classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ipojo-runtime-1.8.6
    • Fix Version/s: ipojo-runtime-1.10
    • Component/s: iPOJO
    • Labels:
      None

      Description

      The @StaticServiceProperty annotation is made to be used like this:

      @Component
      @Provides(properties =

      { @StaticServiceProperty(name="property", value="value", type = "java.lang.String") }

      )
      @Instantiate(name="instanceWithProperties")
      public class MyComponent

      { //... }

      It cannot be used on classes directory (as it's attached to a provided service). To avoid this mistake, we should set the `target` of the annotation to {}.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: