thanks for the speedy response, if I'm heading in the right direction, I'll keep trying. Just to check you understand what I'm trying to achieve... I'm hoping calls to getPackage from within my 'Entity' FacadeLogicImpl will return an instance of my PackageFacade


HttpUnitPackageFacade pack = (HttpUnitPackageFacade) getPackage();


this should work fine as long as your metafacade properly maps onto all packages


this however throws a ClassCastException as getPackage() continues to return org.andromda.metafacades.uml14.PackageFacadeLogicImpl instances.


hmm .. that's strange, something must be wrong in your metafacademapping


am I mapping the correct thing here then? I tried the following three mappings, but all resulted in a ClassCastException


org.omg.uml.modelmanagement.UmlPackage$Impl
org.omg.uml.UmlPackage$Impl
org.omg.uml.modelmanagement.Model$Impl

<metafacade class="com.codeczar.andromda.cartridges.httpunit.metafacades.HttpUnitPackageFacadeLogicImpl">

   <mapping class="org.omg.uml.modelmanagement.UmlPackage$Impl"/>
</metafacade>

I'm right in thinking that metafacade mappings are defined in andromda-metafacades.xml and nowhere else?

thanks again,
Nathan


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to