You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jim Marino (JIRA)" <tu...@ws.apache.org> on 2006/10/12 20:14:37 UTC

[jira] Commented: (TUSCANY-833) ComponentType sidefiles do not work for Pojo Implementation

    [ http://issues.apache.org/jira/browse/TUSCANY-833?page=comments#action_12441825 ] 
            
Jim Marino commented on TUSCANY-833:
------------------------------------

Proliferating an encapsulation approach to extensions is the wrong way to fix this as it will just add to the problems. Moreover, it will not solve the issue for Java Pojos. Either we should treat this as a blocker for M2 and fix it or release note that it does not work. 

I outlined in an email to the list yesterday how to fix this. For the specific script issues, a better workaround involves moving lifecycle scope to the base component type (which would involve moving it from PojoComponentType) as I also outlined. There are, however, other issues which still need to be addressed regarding script extensions as I mentioned in the same mail, which I'm happy to help with. 

> ComponentType sidefiles do not work for Pojo Implementation
> -----------------------------------------------------------
>
>                 Key: TUSCANY-833
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-833
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA POJO Container
>    Affects Versions: Java-M2
>            Reporter: Venkatakrishnan
>         Assigned To: Jim Marino
>            Priority: Critical
>
> If you have a component type sidefile for a Pojo implementation we end up with an exception.  The reason for this is that the JavaComponentTypeLoader passes the PojoComponenType.class to the loader registry to be returned as a result.  However what gets created is an instance of the base ComponentType and then there is an attempt to narrrow this to a PojoComponentType which results in an exception.
> A quick alternative in the interest of M2 fast approaching would be to take the approach that the containers have to get over this problem which is for the containers to get the base ComponentType and copy it over to the special ones.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org