| From | Sent On | Attachments |
|---|---|---|
| Mike Edwards | Oct 10, 2007 7:20 am | |
| Barack, Ron | Oct 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.
Strategist - Emerging Technologies, SCA & SDO. Co Chair OASIS SCA Assembly TC. IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain. Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431 Email: mike...@uk.ibm.com
------------------------------------------------------------------------------
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





