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 | Field and Description |
---|---|
static boolean |
ABORT_TRAVERSAL
Constant that indicates that the traversal should abort after the
visit*() method has been called.
|
static boolean |
CONTINUE_TRAVERSAL
Constant that indicates that the traversal should continue after the
visit*() method has been called.
|
Modifier and Type | Method and Description |
---|---|
Object |
traverse(Object node)
Entry point for the PicoVisitor traversal.
|
void |
visitComponentAdapter(ComponentAdapter<?> componentAdapter)
Visit a
ComponentAdapter that has to accept the visitor. |
void |
visitComponentFactory(ComponentFactory componentFactory)
Visit a
ComponentAdapter that has to accept the visitor. |
boolean |
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. |
static final boolean CONTINUE_TRAVERSAL
static final boolean ABORT_TRAVERSAL
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.boolean 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 visitComponentFactory(ComponentFactory componentFactory)
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.Copyright © 2003–2016 Codehaus. All rights reserved.