cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <baro...@nicolaken.com>
Subject Re: [PROPOSAL] mulitple actions per class
Date Tue, 12 Feb 2002 14:05:41 GMT

----- Original Message -----
From: "Torsten Curdt" <tcurdt@dff.st>
To: <cocoon-dev@xml.apache.org>
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                 krysalis.org@nicolaken.com
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message