in reply to Re: Filter objects?
in thread Filter objects?
There is a design pattern that does what you want it to do. It's called a (I think) facade. The idea is that you have a bunch of layers over an object that will trap calls to a method and validate whatever. Once that actual object's method is called, it can assume the input data is good.
Somebody almost certainly has documented filters as a design pattern - but it's not a facade :-)
A facade is when you hide the details of using a group of objects behind a simple interface (e.g. LWP::Simple is a facade for LWP::UserAgent et al.)
There's an article on facade's in 0.4 edition of the Perl Review for those interested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Filter objects?
by matth (Monk) on Jan 30, 2003 at 16:20 UTC | |
by adrianh (Chancellor) on Jan 30, 2003 at 17:26 UTC | |
|
Re: Re: Re: Filter objects?
by matth (Monk) on Jan 30, 2003 at 15:07 UTC |