Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.enhancer
Class Enhancer

    java.lang.Object
      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 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 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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