org.hibernate.bytecode.enhance.spi
Class Enhancer
java.lang.Object
org.hibernate.bytecode.enhance.spi.Enhancer
public class Enhancer
- extends Object
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 |
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
Enhancer
public Enhancer(EnhancementContext enhancementContext)
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.