atom feed2 messages in org.oasis-open.lists.sca-jNEW ISSUE: ComponentContext.getProper...
FromSent OnAttachments
Mike EdwardsOct 10, 2007 7:20 am 
Barack, RonOct 18, 2007 12:37 am 
Subject:NEW ISSUE: ComponentContext.getProperty(...) ill defined
From:Mike Edwards (mike@uk.ibm.com)
Date:Oct 10, 2007 7:20:42 am
List:org.oasis-open.lists.sca-j

RAISER: Mike Edwards

TARGET: Description of ComponentContext.getProperty() method in Java Common Annotations & APIs, Section 1.7.1

DESCRIPTION: ComponentContext.getProperty(...) does not describe what should be returned in the following circumstances:

Java class has a property identified with a @Property annotation on a setter method, with a private field having a default value:

private String location ="RTP";

@Property public void setLocation(String location) { this.location = location; }

...and there is no corresponding getter method for this property.

What value can/should getProperty(...) return in these circumstances? There is no getter method so how does it know what the actual value is? It may be the default (which cannot be seen externally) or it may be a value supplied by SCA configuration.

PROPOSAL: None

Yours, Mike.

Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU