|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface realizing a visitor pattern for PicoContainer
as described in the GoF.
The visitor should visit the container, its children, all registered ComponentAdapter
instances and all instantiated components.
Method Summary | |
Object |
traverse(Object node)
Entry point for the PicoVisitor traversal. |
void |
visitComponentAdapter(ComponentAdapter componentAdapter)
Visit a ComponentAdapter that has to accept the visitor. |
void |
visitContainer(PicoContainer pico)
Visit a PicoContainer that has to accept the visitor. |
void |
visitParameter(Parameter parameter)
Visit a Parameter that has to accept the visitor. |
Method Detail |
public Object traverse(Object node)
PicoContainer
, ComponentAdapter
,
or Parameter
are valid.
node
- the start node of the traversal.
IllegalArgumentException
- in case of an argument of invalid type.public void visitContainer(PicoContainer pico)
PicoContainer
that has to accept the visitor.
pico
- the visited container.public void visitComponentAdapter(ComponentAdapter componentAdapter)
ComponentAdapter
that has to accept the visitor.
componentAdapter
- the visited ComponentAdapter.public void visitParameter(Parameter parameter)
Parameter
that has to accept the visitor.
parameter
- the visited Parameter.
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |