On Wed, Feb 19, 2003 at 02:33:02PM -0800, Jason Carreira wrote: > Based on the idea earlier of setting the method to execute for commands > and making the default alias use the "execute()" method, thereby making > the Action Interface unneeded, I'm proposing to remove the Action > Interface from Xwork 1.0 / Webwork 2.0 and allowing any object to be > used. > > If no-one has any objections, I'll be doing this. >
Hmm.. refactoring away an interface? - it's usually the other way around <smile>. Keeping the action interface make WW easier to grasp (IMHO) - everyone knows that a class that implements Action is an important component in the application. Using dynamic proxies as configurable interceptors you could still allow POJO:s to be used as Actions: # views.properties hello.action=GenericInterceptorAction .. .. # Imaginary generic-interceptor.properties hello.action.impl=com.POJOImpl hello.action.execute=name_of_method_returning_string Where GenericInterceptionAction would delegate the execute() to name_of_method_returning_string on an instance of com.POJOImpl. //Anders -- |===================================| | Anders Engström | | [EMAIL PROTECTED] | | http://www.gnejs.net | |===================================| |Your mind is like an umbrella. | |It doesn't work unless you open it.| | /Frank Zappa | |===================================|
msg01891/pgp00000.pgp
Description: PGP signature