|
|
| "be consistent" | |
| PerlMonks |
Re^4: Altering the inheritance path of an objectby remiah (Friar) |
| on Sep 29, 2012 at 05:38 UTC ( #996338=note: print w/ replies, xml ) | Need Help?? |
|
update: my ascii drawing corrupt with threaded view. please have a look from single article view.
request from client
+-------------------------> pipeline
+------------------------------------------------------------------+
| |
| |
| r |
| +-------------+ |
| +-----------+-+ v +----+ |
| | master db | +--+--+ | |
| +-------------++--+ | csv |+--+ v |
| r| r| +-----+ | r r r |
| +-------------|---|---------+ |r r r r r |
| | tempral db | | | | + |
client | | v v <----+ v |
| | person company | generic object |
| +-------------+----+--+---+-+ with |
| r +-------------|----|--|---|--+ various |
| +-----+ csv <----+r | | | | combination |
| |r | |r |r |r | of roles |
| +-----> tab delimited <+ | | | + |
| |r | | | | | |
| +-----> html <--------+ | | | |
| |r | | | | |
| +-----> excel <------------+ | <---+ |
| +----------------------------+ |
<-------+ | |
| |
So, your generic object should know the dependencies of roles to use, plugging them , create the output. Dependencies varies from case by case, you have to use roles dynamically, with apply_all_roles. From client, it will just look like google api, tell the pipe line parameters needed with HTML header, or sending XML.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||