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

The Property value is 'null' in the Architecture description, while the value is well assigned to the component's field.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: iPOJO-1.4.0
    • Fix Version/s: iPOJO-1.6.0
    • Component/s: iPOJO
    • Labels:
      None

      Description

      Here is my simple Component :

      public class MyServiceImpl implements MyService {
      private long someAttribut;
      public void doSomething()

      { // TODO Auto-generated method stub }

      }

      And its metadata:

      <component classname="fr.liglab.adele.mediators.MyServiceImpl" name="MyServiceImpl">
      <provides>
      <property name="attribut" field="someAttribut" value="2000"/>
      </provides>
      </component>
      <instance component="MyServiceImpl"/>

      When I type 'arch' to see the architecture description of my instance, I get the following result:

      instance name="MyServiceImpl-0" component.type="MyServiceImpl" state="valid" bundle="15"
      handler name="org.apache.felix.ipojo:provides" state="valid"
      provides service.id="69" state="registered" specifications="[fr.liglab.adele.mediators.MyService]"
      property name="attribut" value="null"
      property name="factory.name" value="MyServiceImpl"
      property name="instance.name" value="MyServiceImpl-0"
      handler name="org.apache.felix.ipojo:architecture" state="valid"

      We notice that the "attribut" property has "null" value.

      But on the service properties, the value is "2000" and not "null".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: