org.apache.cayenne.enhancer
Class Enhancer

java.lang.Object
  extended by org.apache.cayenne.enhancer.Enhancer
All Implemented Interfaces:
ClassFileTransformer

public class Enhancer
extends Object
implements ClassFileTransformer

A ClassFileTransformer that delegates class enhancement to a chain of ASM transformers provided by the EnhancerVisitorFactory.

Since:
3.0

Field Summary
protected  org.apache.commons.logging.Log logger
           
protected  EnhancerVisitorFactory visitorFactory
           
 
Constructor Summary
Enhancer(EnhancerVisitorFactory visitorFactory)
           
 
Method Summary
 byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.commons.logging.Log logger

visitorFactory

protected EnhancerVisitorFactory visitorFactory
Constructor Detail

Enhancer

public Enhancer(EnhancerVisitorFactory visitorFactory)
Method Detail

transform

public byte[] transform(ClassLoader loader,
                        String className,
                        Class<?> classBeingRedefined,
                        ProtectionDomain protectionDomain,
                        byte[] classfileBuffer)
                 throws IllegalClassFormatException
Specified by:
transform in interface ClassFileTransformer
Throws:
IllegalClassFormatException


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