felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-2636) Cannot control the validity of an iPOJO instance using a configuration property
Date Wed, 06 Oct 2010 16:23:32 GMT

     [ https://issues.apache.org/jira/browse/FELIX-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Clement Escoffier updated FELIX-2636:
-------------------------------------

    Fix Version/s: iPOJO-1.8.0

> Cannot control the validity of an iPOJO instance using a configuration property
> -------------------------------------------------------------------------------
>
>                 Key: FELIX-2636
>                 URL: https://issues.apache.org/jira/browse/FELIX-2636
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Bengt Rodehav
>             Fix For: iPOJO-1.8.0
>
>
> Controlling the validity of an iPOJO instance as follows doesn't work:
> @Controller
> @Property(name = "connect.enabled", mandatory = true)
> private boolean mValid = false;
> When initialising mValid to false (as above), the iPOJO instance becomes invalid even
though the configuration property (connect.enabled in this case) is true.
> On the other hand, if the following code is used...
> @Controller
> @Property(name = "connect.enabled", mandatory = true)
> private boolean mValid = true;
> ...then the instance becomes valid even though the configuration property is false.
> I use Karaf 1.6.0 with file installer 3.0.2 in the scenario above. The problem only occurs
when starting Karaf. Subsequent changes of the configuration property will change the validity
of the instance correctly. The problem does not show when using iPOJO 1.6.0 but it's still
important to make sure that the above described scenario is supported by iPOJO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message