Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 6505 invoked from network); 6 Oct 2010 16:23:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 16:23:54 -0000 Received: (qmail 46447 invoked by uid 500); 6 Oct 2010 16:23:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 46198 invoked by uid 500); 6 Oct 2010 16:23:53 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 46190 invoked by uid 99); 6 Oct 2010 16:23:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 16:23:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 16:23:52 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o96GNWvE009188 for ; Wed, 6 Oct 2010 16:23:32 GMT Message-ID: <24110487.8921286382212350.JavaMail.jira@thor> Date: Wed, 6 Oct 2010 12:23:32 -0400 (EDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-2636) Cannot control the validity of an iPOJO instance using a configuration property In-Reply-To: <4209770.535431286221652559.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.