| java.lang.Object biz.hammurapi.util.DispatchingVisitor
DispatchingVisitor | public class DispatchingVisitor implements PoliteVisitor,VisitorStackSource,Command(Code) | | Dispatching visitor navigates through Visitables hierarchy and
invokes visit(Type) method of targets with compatible Type.
author: Pavel Vlasov version: $Revision: 1.9 $ |
Inner Class :public interface SelfListener | |
Inner Class :public interface Listener | |
Inner Class :public interface Filter | |
Inner Class :public interface Stats | |
execute | public void execute(Object executionContext)(Code) | | Passes executionContext for visiting.
Subclasses can override this method and
queue object for execution and invoke
accept/visit in a different thread.
|
getStats | public Stats getStats()(Code) | | Returns visitor statistics. |
getThreadStats | public Stats getThreadStats()(Code) | | |
processReturnValue | protected void processReturnValue(Object target, Method method, Object argument, Object returnValue)(Code) | | Passes return values back to visitor.
Arrays and collections are iterated and individual elements are passed to the visitor.
Override this method to process return values in a different way.
Parameters: target - - Object which method was invoked Parameters: method - - Method which was invoked Parameters: argument - - Method argument Parameters: returnValue - - Return value |
remove | public void remove(Object target)(Code) | | Removes object from targets collection.
Parameters: target - |
size | public int size()(Code) | | total number of handlers |
|
|