[ 
https://issues.apache.org/jira/browse/TUSCANY-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Sebastien Delfino resolved TUSCANY-1318.
---------------------------------------------

    Resolution: Invalid

This works as designed.

SCA composites are processed in multiple phases.

1. load composite files, as part of the loading for each include we create an 
empty composite placeholder representing a "proxy" for the included composite, 
with it's unresolved flag set to true

2. after all composites of a contribution have been loaded, we resolve 
references to various model objects, like included composites, at this point 
we'll replace the composite placeholders with the actual loaded composites.

3. normalize composites, as part of this normalization phase we'll clone 
included composites (in addition to many other things like merging 
configuration at different composition levels and resolving wires)

The ReadAllTestCase test case only tests phase one, so seeing empty composites 
in the includes list is expected.

Other test cases running the 3 phases, for example test cases exercizing the 
SCADomain, will show populated composites instead of these empty placeholders.


> can not get include Composite's services, components...
> -------------------------------------------------------
>
>                 Key: TUSCANY-1318
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1318
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-0.90
>         Environment: Windows XP
>            Reporter: Yang Lei
>             Fix For: Java-SCA-Next
>
>
> Add two lines to ReadAllTestCase.testReadComposite()
>         Composite include = composite.getIncludes().get(0);
>         assertEquals(include.getName(), new QName("http://calc";, 
> "TestAllDivide"));
>         // the following is the added lines
>         assertEquals(1,include.getComponents().size());
>         assertEquals(1,include.getServices().size(), 1);
> And got 0 components and 0 services.
> Tried to get other attribute on the include as PolicySet and Intents, are are 
> also empty. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to