From: <iam...@ne...> - 2004-05-27 13:02:53
|
hi guys, I thought it to be better to inform you about the changes Chad and I implemented last night (CET), all cartridge developers need to be updated in this respect. Anticipating the upcoming OCL validation Java fragments we have already cleaned up the metafacades 'Logic' classes and prepared them for interceptions of preconditions and postconditions. With cleaning up I mean that now ALL implementation methods (in the 'LogicImpl' classes) start with 'handle'; previously it was only the associations that had them like this, so now the attributes and operations too. The parent class still contains the regular 'get' method but delegates to the implementation method that the child classes implement. So now that everything is consistent we also added local variable caching, a feature that upto now was only manually coded in bpm4struts. With local caching we have the 'Logic' class caching the return value of any 'handle' method and directly returning on subsequent calls (assuming the model does not change during code-generation, if it changes caching can be disabled). This improves code generation significantly, we could do tests with caching enabled or disabled, these tests will show a boost of 30% or more (AnimalQuiz from 30sec down to 20sec) so in short, the andromda-meta cartridge templates have changed and next time you add a method you will have it called handleXXX() in the implementation classes. Note that your return values will be cached in the 'Logic' class and pre/post conditions will be called around it. Existing code already has been upgraded with these improvements. Next up is the OCL validation, we hope integrating/testing them this weekend. -- Wouter. __________________________________________________________________ Introducing the New Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp |