org.apache.cayenne.enhancer
Class PojoVisitor

java.lang.Object
  extended by ClassAdapter
      extended by org.apache.cayenne.enhancer.PojoVisitor

public abstract class PojoVisitor
extends ClassAdapter

Enhances classes passed through the visitor, ensuring that the resulting class implements Persistent interface as well as supports lazy faulting.

Since:
3.0

Field Summary
protected  EnhancementHelper helper
           
 
Constructor Summary
PojoVisitor(ClassVisitor visitor)
           
 
Method Summary
protected abstract  Collection<String> getLazilyFaultedProperties()
           
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Handles injection of additional fields and Persistent interface properties.
 void visitEnd()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helper

protected EnhancementHelper helper
Constructor Detail

PojoVisitor

public PojoVisitor(ClassVisitor visitor)
Method Detail

visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String superName,
                  String[] interfaces)
Handles injection of additional fields and Persistent interface properties.


visitEnd

public void visitEnd()

getLazilyFaultedProperties

protected abstract Collection<String> getLazilyFaultedProperties()


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.