[picocontainer-dev] The Visitor on Pico
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
I've never liked this. I mean I like the visitor pattern for things like ASM, but it seemed gratuitous to shove it into Pico back in the day. Originally Lifecycle's breadth first start() was tied to it. Then we put in a more conventional traversal. Why don't I like it ? Consider that child containers can choose different CAF, Lifecycle, Montor to parents. They can also not register themselves with parent, so even start/stop does not cascade. The visitor concept seems to transcend these choices. Indeed, a container cannot block/veto visiting. I know people use this - can they speak up and give real world examples? Pete ? - Paul