You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jeremy Boynes (JIRA)" <ji...@apache.org> on 2006/02/28 08:05:41 UTC

[jira] Commented: (TUSCANY-47) Incorrect parent prevents references from resolving for system components

    [ http://issues.apache.org/jira/browse/TUSCANY-47?page=comments#action_12368080 ] 

Jeremy Boynes commented on TUSCANY-47:
--------------------------------------

Jim and I looked through this and we believe there is a problem with the way in which the model is being built. When the module component (mc) is registered, the builder visits the model recursively descending into all child elements. However, when it recurses, it does not update the intended parent context and hence components in nested elements get registered at the top level rather than under their parent.

There is a quick fix we can do for this if we are prepared to assume that we only have a single level of composition. In that case, we can register the module component first with no implementation, then register and build it's implementation (the module element). However, although this is a quick fix in the builder, we will need to make more extensive changes to the loader APIs so that they return Module elements rather than ModuleComponent elements. I think this is worth doing as it will make subsystem assembly easier.

In the longer term, the builder needs to understand recursion properly and push a new parent context onto a stack when it recurses into an aggregation. We will need this to support russian-doll but perhaps can hold off for now.


> Incorrect parent prevents references from resolving for system components
> -------------------------------------------------------------------------
>
>          Key: TUSCANY-47
>          URL: http://issues.apache.org/jira/browse/TUSCANY-47
>      Project: Tuscany
>         Type: Bug
>   Components: Java SCA Core
>     Reporter: Jeremy Boynes

>
> References declared on a system component to a component in the same module are not resolved correctly. It appears the parentContext is set incorrectly

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira