Drools :: Core 6.0.0.Beta5

org.drools.core.util
Class ReflectiveVisitor

java.lang.Object
  extended by org.drools.core.util.ReflectiveVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
MemoryVisitor

public abstract class ReflectiveVisitor
extends Object
implements Visitor

Java Tip 98: Reflect on the Visitor design pattern. Implement visitors in Java, using reflection. http://www.javaworld.com/javaworld/javatips/jw-javatip98.html Michael Neale says: I really hate this code. Not really a helpful use of reflection, always annoys me.


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
ReflectiveVisitor()
           
 
Method Summary
 void visit(Object object)
           
 void visitObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.slf4j.Logger logger
Constructor Detail

ReflectiveVisitor

public ReflectiveVisitor()
Method Detail

visit

public void visit(Object object)
Specified by:
visit in interface Visitor

visitObject

public void visitObject(Object object)

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.