I forget, this known as "Decorator Pattern":
http://en.wikipedia.org/wiki/Decorator_pattern

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: Uwe Schindler [mailto:[email protected]]
> Sent: Thursday, September 10, 2009 4:09 PM
> To: [email protected]
> Subject: RE: LowerCaseFilter, is there a reason why the class is final?
> 
> See https://issues.apache.org/jira/browse/LUCENE-1753
> 
> In general, if you want to add functionality plug another filter into the
> chain. At least the implementations should be final (next/incrementToken).
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
> 
> 
> > -----Original Message-----
> > From: Daniel Shane [mailto:[email protected]]
> > Sent: Thursday, September 10, 2009 4:06 PM
> > To: [email protected]
> > Subject: LowerCaseFilter, is there a reason why the class is final?
> >
> > Hi all,
> >
> > I was wondering why the LowerCaseFilter is declared final? In my code, I
> > would like to extend it but apparently its not possible. I'm just
> > wondering why extending this type of class is considered evil?
> >
> > Daniel Shane
> >
> > ---------------------------------------------------------------------
> > 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