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] Issue 225: proposal to resolve



Folks,

Anish's formulation is a tad too mathematical for my tastes (I am a humble physicist by background...) and so I suggest the following alternative wording:

"interface.java child element is present, with the interface attribute set as follows:

1.        if only one bean refers to the bean reference, then the interface attribute is set to the fully qualified name of the interface class identified by the bean reference
2.        if two or more beans refer to the bean reference, each bean reference identifies an interface class.  Each interface class in the set of interface classes has to be either the same as, or an ancestor of, or a descendent of, each other interface class in the set.  If this condition does not hold true then the SCA runtime MUST raise an error [SPRxxxxx].  The interface attribute is set to the fully qualified name of the interface class which has the highest depth in the inheritance tree in the set of interface classes - i.e. it is set to the most specific subclass amongst all the interface classes identified by the bean references.  

For example, if two bean A and B refer to a bean reference C, and the interface class identified by bean A for reference C is I1, and that of bean B is I2, and if I2 is a subclass of I1, then the interface attribute value for the introspected implicit reference is set to I2."


Yours, Mike

Dr Mike Edwards  Mail Point 146, Hursley Park
STSM  Winchester, Hants SO21 2JN
SCA & Services Standards  United Kingdom
Co-Chair OASIS SCA Assembly TC  
IBM Software Group  
Phone: +44-1962 818014  
Mobile: +44-7802-467431 (274097)  
e-mail: mike_edwards@uk.ibm.com  
 
 




From: Anish Karmarkar <Anish.Karmarkar@oracle.com>
To: OASIS Java <sca-j@lists.oasis-open.org>
Date: 14/02/2011 08:14
Subject: [sca-j] Issue 225: proposal to resolve





Here is my proposal to resolve issue 225.
Comments?

-Anish
--

In section 3, for the case where there is no <sca:reference/> and no <sca:property> elements in the app context, replace the text

"interface.java child element is present, with the interface attribute set to the fully qualified name of the interface class identified by the bean reference"

with:

"interface.java child element is present, with the interface attribute set as follows:

1.        if only one bean refers to the bean reference, then the interface attribute is set to the fully qualified name of the interface class identified by the bean reference
2.        if two or more beans refer to the bean reference, then:
Let S be the set of fully qualified names of the interface classes identified by the bean references. ∀ s1, s2S, s1 is either an ancestor or descendant of s2 in the class inheritance tree. If this condition does not hold true then the SCA runtime MUST raise an error [SPRxxxx]. The interface attribute is set to that member of S whose depth in the inheritance tree is the highest amongst all the members of S. I.e., it is set to the most specific subclass amongst all the interface classes identified by the bean references.
For example, if two bean A and B refer to a bean reference C, and the interface class identified by bean A for reference C is I1, and that of bean B is I2, and if I2 is a subclass of I1, then the interface attribute value for the introspected implicit reference is set to I2.








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]