com.jdon.container.visitor
Interface ComponentVisitor
- All Known Implementing Classes:
- ComponentOriginalVisitor, HttpSessionProxyVisitor
public interface ComponentVisitor
Visitor pattern
ComponentVisitor is a actor of Visitor, it do not need
many access method, such as:
visitAcomponent();
visitBcomponent();
...
because all these components has registered in container,
we can get them from container.
visit
java.lang.Object visit(TargetMetaRequest targetMetaRequest)
- using this method, the component that implements Visitable interface
will be executed, and return the running result.
- Parameters:
targetMetaDef - target service meta
- Returns:
- the result of the component run
visitSessionContext
SessionContext visitSessionContext(TargetMetaRequest targetMetaRequest)
getContainerWrapper
ContainerWrapper getContainerWrapper()