Hi Wouter, difficult problem... needs at least one nights sleep ... :-)
Cheers... Matthias > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Wouter Zoons > Sent: Tuesday, January 27, 2004 10:57 PM > To: Matthias Bohlen > Cc: [EMAIL PROTECTED] > Subject: [Andromda-devel] validation of MMDs, when exactly ? > > > hi people, > > I ran into a small issue during development and more specifically the > implementation of the validation methods. > currently the validate() method is called upon decorator > constructor (by > the factory), while this seems a plausible approach it has a (IMO) > severe drawback > > suppose you are validation decorator A > if for some reason you need to construct another decorator 'B' the > factory will call B.validate() at some point before A.validate() has > finished, if this in turn results in calling (possibly indirectly) > A.validate() again we are caught in an endless loop > this is not a 0,0001% chance of occurrence, this happened to me on > several occasions > > this led me to believe there must be a better way to validate > the MMDs, > in fact the problem is simple, we need to validate only the model > elements upon loading of the model, not each time we > construct one (in > fact, I am convinced we will run into more issues if we would try > dynamically updating the model by for example adding new elements) > > to give the best alternative solution is beyond my scope, > Matthias could > you help me out ? how can we validate a model element only once ? > preferably upon loading the model ? > where should I add the core for this ? > > thanks in advance > Wouter. > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, > CA. http://www.eclipsecon.org/osdn > _______________________________________________ > Andromda-devel mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-devel > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel
