|
||||||||||
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.
Field Summary | |
---|---|
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. |
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 |
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. |
Field Detail |
---|
static final boolean CONTINUE_TRAVERSAL
static final boolean ABORT_TRAVERSAL
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |