tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Fernández <afm...@tid.es>
Subject Re: TC3.3 Proposal: Refactoring org.apache.jasper.servlet
Date Mon, 02 Apr 2001 07:41:58 GMT
Oh, I knew that one :(

Thanks anyway,

y un saludo,

Alex.

Steve Downey wrote:
> 
> It's one of the alternate names for Abstract Factory, from the GoF book. AKA
> toolkit.
> 
> The idea is that you have a an abstract class with methods such as
> createThing1 and createThing2, which return abstract Thing1s and Thing2s. A
> concrete implementation of the factory, xFactory,  returns an xThing1 and an
> xThing2, and a yFactory returns yThing1 and yThing2.
> 
> A classic example is GUI widgets, where you might have MotifButton,
> MotifScrollbar, MotifWindow, ..., or Win32Button, Win32Scrollbar,
> Win32Window, ..., or GtkButton, GtkScrollbar, GtkWindow, ...
> 
> Here we have CommandLineMangler, CommmandLineContext, CommandLineCompiler,
> and JspMangler, JspEngineContext, JspCompiler, ...
> 
> They don't seem to be pure mix and match. That is, it doesn't necessarily
> make sense to use an XCompiler with an XContext, although it might. So the
> overhead of having to create a new Factory implementation for a new
> combination or style isn't that excessive.
> 
> > -----Original Message-----
> > From: Alex Fernández [mailto:afm229@tid.es]
> > Sent: Friday, March 30, 2001 2:49 AM
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Re: TC3.3 Proposal: Refactoring org.apache.jasper.servlet
> >
> >
> > Hi Steve!
> >
> > Steve Downey wrote:
> > > Perhaps a Kit pattern is in order?
> >
> > Wow, a Kit pattern. I never heard of that one (or never got
> > that far in
> > the Patterns books :)
> >
> > Is it a standard one? If so, I'll check it out later at home.
> >
> > Un saludo,
> >
> > Alex.
> >
> <><><><><><><><><><><><><><><><><><><><><>This
electronic mail transmission
> may contain confidential information and is intended only for the person(s)
> named.  Any use, copying or disclosure by any other person is strictly
> prohibited.  If you have received this transmission in error, please notify
> the sender via e-mail. <><><><><><><><><><><><><><><><><><><><><>

Mime
View raw message