I believe the ideal solution would be one that allows you to plug in your 
custom implementation of a metafacade anywhere in the metafacade hierarchy. I 
can achieve this effect by using the following class:



public class MyModelElementLogicImpl extends {

   public MyModelElementLogicImpl(ModelElement modelElement, 
String context) {

      super(modelElement, context);

   }

   

   public Object handleFindTaggedValue(String arg0) {

      System.err.println("Calling custom 
findTaggedValue");

      return super.handleFindTaggedValue(arg0);

   }

}



And manually editing my cartridge's metafacade-impls.properties to contain the 
following line:

org.andromda.metafacades.uml.ModelElementFacade=test.MyModelElementLogicImpl



This way the pre/post-conditions are called and my custom implementation is 
used. I think it would be useful to support overriding the metafacade 
implementations like this in the meta cartridge. What do you think?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=911#911
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to