Quote:
On a sidenote, is a new metafacade constructed every time I call e.g. 
getOtherEnd()? Or is is just the context which is calculated each time? 
(end of quote)




No the metafacade is only constructed once (per namespace) and then cached.




Quote:
Also, with the property mechanism, does that mean the code generator just 
instantiates an A no matter what, then tests for the property, and throws away 
the metafacade if the property didn't have the right value?


(end of quote)
 



Yep.




Quote:
If so, I assume it's not considered very time consuming to instantiate 
unnecessary classes then? Or maybe it just doesn't matter that much for a code 
generator? 
(end of quote)




It only instantiates it once per namespace (like I said above)...and cached 
after that...so its not bad at all.  For your attributes that you model for 
mapping, make sure you set them as frozen in your model...that way they're 
cached as well after the first invocation.
--
Chad Brandon - [EMAIL PROTECTED]

http://www.andromda.org
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1978#1978
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to