org.hibernate.bytecode.enhance.spi
Class Enhancer

java.lang.Object
  extended by org.hibernate.bytecode.enhance.spi.Enhancer

public class Enhancer
extends Object


Field Summary
static String ENTITY_ENTRY_FIELD_NAME
           
static String ENTITY_ENTRY_GETTER_NAME
           
static String ENTITY_ENTRY_SETTER_NAME
           
static String ENTITY_INSTANCE_GETTER_NAME
           
static String INTERCEPTOR_FIELD_NAME
           
static String INTERCEPTOR_GETTER_NAME
           
static String INTERCEPTOR_SETTER_NAME
           
static String NEXT_FIELD_NAME
           
static String NEXT_GETTER_NAME
           
static String NEXT_SETTER_NAME
           
static String PERSISTENT_FIELD_READER_PREFIX
           
static String PERSISTENT_FIELD_WRITER_PREFIX
           
static String PREVIOUS_FIELD_NAME
           
static String PREVIOUS_GETTER_NAME
           
static String PREVIOUS_SETTER_NAME
           
 
Constructor Summary
Enhancer(EnhancementContext enhancementContext)
           
 
Method Summary
 byte[] enhance(String className, byte[] originalBytes)
          Performs the enhancement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERSISTENT_FIELD_READER_PREFIX

public static final String PERSISTENT_FIELD_READER_PREFIX
See Also:
Constant Field Values

PERSISTENT_FIELD_WRITER_PREFIX

public static final String PERSISTENT_FIELD_WRITER_PREFIX
See Also:
Constant Field Values

ENTITY_INSTANCE_GETTER_NAME

public static final String ENTITY_INSTANCE_GETTER_NAME
See Also:
Constant Field Values

ENTITY_ENTRY_FIELD_NAME

public static final String ENTITY_ENTRY_FIELD_NAME
See Also:
Constant Field Values

ENTITY_ENTRY_GETTER_NAME

public static final String ENTITY_ENTRY_GETTER_NAME
See Also:
Constant Field Values

ENTITY_ENTRY_SETTER_NAME

public static final String ENTITY_ENTRY_SETTER_NAME
See Also:
Constant Field Values

PREVIOUS_FIELD_NAME

public static final String PREVIOUS_FIELD_NAME
See Also:
Constant Field Values

PREVIOUS_GETTER_NAME

public static final String PREVIOUS_GETTER_NAME
See Also:
Constant Field Values

PREVIOUS_SETTER_NAME

public static final String PREVIOUS_SETTER_NAME
See Also:
Constant Field Values

NEXT_FIELD_NAME

public static final String NEXT_FIELD_NAME
See Also:
Constant Field Values

NEXT_GETTER_NAME

public static final String NEXT_GETTER_NAME
See Also:
Constant Field Values

NEXT_SETTER_NAME

public static final String NEXT_SETTER_NAME
See Also:
Constant Field Values

INTERCEPTOR_FIELD_NAME

public static final String INTERCEPTOR_FIELD_NAME
See Also:
Constant Field Values

INTERCEPTOR_GETTER_NAME

public static final String INTERCEPTOR_GETTER_NAME
See Also:
Constant Field Values

INTERCEPTOR_SETTER_NAME

public static final String INTERCEPTOR_SETTER_NAME
See Also:
Constant Field Values
Constructor Detail

Enhancer

public Enhancer(EnhancementContext enhancementContext)
Method Detail

enhance

public byte[] enhance(String className,
                      byte[] originalBytes)
               throws EnhancementException
Performs the enhancement.

Parameters:
className - The name of the class whose bytecode is being enhanced.
originalBytes - The class's original (pre-enhancement) byte code
Returns:
The enhanced bytecode. Could be the same as the original bytecode if the original was already enhanced or we could not enhance it for some reason.
Throws:
EnhancementException


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.