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

Avoid @StaticServiceProperty to be used on classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ipojo-runtime-1.8.6
    • ipojo-runtime-1.10
    • iPOJO
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: