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

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

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


Subject: [ISSUE 142] Need a normative statement for @autowire inheritance - Proposal



Folks,

Here is a proposal for the resolution of Issue 142:

1) In sca-assembly-1.1-spec-cd03-Rev2.pdf:

Replace lines 794 - 795 in section 4.3 with the following:

·        autowire : boolean (0..1) – whether the reference is autowired, as described in the Autowire section.
The default value of the @autowire attribute MUST be the value of the @autowire attribute on the component containing
the reference, if present, or else the value of the @autowire attribute of the composite containing the component, if present,
and if neither is present, then it is "false". [ASM50042]


2) In sca-assembly-1.1-test-assertions-cd01.pdf:

Add at the end of section 5:

Assertion ID ASM-TA-5044
Source [ASM50042]
Target <reference/> element of a <component/> element
Prerequisites a) <reference/> element has no @autowire attribute
b) There are 2 or more valid target services for the reference contained in the same composite as the component containing the reference which satisfy the autowire process.
c) The <component/> element containing the <reference/> has @autowire="true"
Predicate <reference/> is wired to all of the compatible component services and can invoke operations on each of them
Prescription Level Mandatory
Tags "component” “reference” “autowire”



3) In sca-assembly-1.1-testcases-cd01.pdf

Add at the end of section 5:

ASM_5038_TestCase

Testcase ID ASM_5038_TestCase
Test Assertion ASM-TA-5044
Description Tests that where a <component/> <reference/> has no @autowire attribute, and the containing <component/> has @autowire="true", that the <reference/> is wired to all valid target services contained in the same composite as the <component/>
Artifacts ASM_5038_TestCase.java
Test_ASM_5038.composite
TestInvocation.wsdl
TestClient_0002.composite
TestComposite7.composite
TestComposite1.composite
Service1.wsdl
Expected output Positive test:
"ASM_5038 request service1 operation1 invoked second operation1 invoked third operation1 invoked fourth operation1 invoked"


<Note: This would be based on ASM_6018_TestCase, with the modification being made to the top level
composite to move the @autowire setting from the component reference element to the component element>


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





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]