On Tue, 19 Aug 2003, Tom Drake wrote:

> Date: Tue, 19 Aug 2003 09:30:56 -0700
> From: Tom Drake <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: 'Struts Developers List' <[EMAIL PROTECTED]>
> Subject: RE: Decomposing RequestProcessor -- Some Code To Play With
>
> That's true, however, the plan is to replace this with the functors package
> (at least that's my understanding).
>

Even if we were to use UnaryPredicate or the Predicate from collections,
we would be stuck with an ugly cast of the argument to Context (or some
subclass of it) in every single command.  It's also not clear how we could
accomodate the concepts of Chain and Catalog that are integral to my
vision of what we need in the support library.

I'm currently -1 on trying to incorporate or merge with commons-functor,
at least until we settle on what functionality we expect the low level
chain of responsibility package to provide.

Craig

> -----Original Message-----
> From: Leonardo Quijano Vincenzi [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 16, 2003 8:35 AM
> To: Struts Developers List
> Subject: Re: Decomposing RequestProcessor -- Some Code To Play With
>
>
> Tom Drake wrote:
>
> >I've condensed the UnaryPredicate interface here. It provides both a
> boolean
> >return and a context parameter.
> >
> >package org.apache.commons.functor;
> >
> >public interface UnaryPredicate {
> >    boolean test(Object obj);
> >
> >}
> >
> >
> Commons-collections already has a Predicate interface, btw:
>
>
>     org.apache.commons.collections.Predicate
>
>       |boolean| |*evaluate
> <http://jakarta.apache.org/commons/collections/api/org/apache/commons/collec
> tions/Predicate.html#evaluate%28java.lang.Object%29>*(Object
> <http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html>
> input)|
>
>
> Leonardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to