|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PicoVisitor
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 | |
---|---|
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. |
Method Detail |
---|
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.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 |