----- Original Message ----- From: "Torsten Curdt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 2:34 PM Subject: [PROPOSAL] mulitple actions per class
> Although I'm not yet sure what syntax should be prefered > > 1. <map:action type="SomeActions.doMyAction"> > <!-- directly use the method --> > > 2. <map:action type="SomeActions.MyAction"> > <!-- have a fix prefix like "do" --> > > 3. <map:action type="SomeActions" method="doMyAction"> > > 4. <map:action type="SomeActions" method="MyAction"> > > Of course this will require the use of the reflection API > for those actions using the new method syntax. (All others > will not be effected and treated as usual) You can also use inner classes. > I have made some tests: if we use some intelligent > caching for the reflection API there will be only little > to no performance loss compared to the old mechanism. Jdk 1.4 has way higher performance in using reflection. IMHO a ClassMethodAction, with class name and methos name as parameters, would suffice. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]