OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [sca-j] JAVA-17: Proposed resolution



Folks,

+1

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_edwards@uk.ibm.com



From: Simon Nash <oasis@cjnash.com>
To: OASIS Java <sca-j@lists.oasis-open.org>
Date: 22/02/2009 10:19
Subject: [sca-j] JAVA-17: Proposed resolution





The resolution of JAVA-55 has clarified the rules for which setter
methods are taken into account when introspecting for properties
and references.  The relevant text is as follows:

 The following setter methods and fields are taken into consideration:
  1. Public setter methods that are not part of the implementation of
     an SCA service (either explicitly marked with @Service or implicitly
     defined as described above)
  2. Public or protected fields unless there is a public setter method
     for the same name

Point 1 above makes it clear that the "setX" examples given in the JIRA
are not properties or references.

The JIRA also raises the following question.
 "Another question would be: Is it valid to have a setter method
  denote both a property/reference and business operation?"

For introspected properties and references, the text in point 1 above
rules out this possibility.  However, the possibility does exist for
properties and references specified by explicit annotations, for example:

 public class MyServiceImpl implements MyService {
     @Property
     public void setX(String x) {
         ...
     }
 }

 @Remotable
 public interface MyService {
     void setX(String x);
 }

I believe this could be useful in some cases and should not be
disallowed.

I therefore propose that this issue should be closed as having been
resolved by JAVA-55.

  Simon



---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php









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








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]