I like the StackableActionFactory, I'll make sure it gets in to XWork at
least.

But what is the XAwareActionFactoryProxy exactly for? I do tons of unit
testing with my actions (using GenericDispatcher as a launching place) and
I've not needed something like this. Also, the *Aware interfaces have been
deprecated. Maybe you can give us an example of how this would be used?

-Pat

----- Original Message -----
From: "Simon Stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 4:08 AM
Subject: [OS-webwork] Two classes to ease development


> I've just started dabbling with WebWork after reading some of the Java
> blogs (Mike's and Joe Walnes' specifically) One of the advantages of
> Webwork is that it should be possible to develop "test first", which is
> something else that I wanted to look into. In order to support this in
> my own work, I've developed two classes, which I've appended to this
> email because I think that they are something that others might find
> useful.
>
> The first is "StackableActionFactory", which acts (by default) as a
> drop in replacement for the DefaultActionFactory. The difference is
> that the chain of action factories that gets called is controlled by a
> simple setting in the webwork.properties, which makes it easier to set
> things up, imo.
>
> The second class is "XAwareActionFactoryProxy", which I wrote to
> simplify TDD (although, ironically, not using TDD ;) Basically, the
> first time an action is called it is examined to see if it implements
> any *Aware interfaces. If it does, then XAware looks for a factory
> class that implements a single public static "set*" method that takes
> an Action as its only parameter, which is then called. Again, the
> behaviour of this class can be configured using the webwork.properties
> file. The only option is the list of packages that XAware should search
> when looking for factory classes.
>
> I would appreciate any feedback on these classes. Consider them to be
> under the same license as the rest of WebWork. If your questions aren't
> answered in the javadocs, please shout out!
>
> Regards,
>
> Simon
>
>


----------------------------------------------------------------------------
----


>
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to