public interface PicoVisitor
PicoContainer
as described in the GoF.
The visitor should visit the container, its children, all registered ComponentAdapter
instances and all instantiated components.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
traverse(java.lang.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. |
java.lang.Object traverse(java.lang.Object node)
PicoContainer
, ComponentAdapter
,
or Parameter
are valid.node
- the start node of the traversal.java.lang.IllegalArgumentException
- in case of an argument of invalid type.void visitContainer(PicoContainer pico)
PicoContainer
that has to accept the visitor.pico
- the visited container.void visitComponentAdapter(ComponentAdapter componentAdapter)
ComponentAdapter
that has to accept the visitor.componentAdapter
- the visited ComponentAdapter.