org.hibernate.bytecode.enhance.spi
Class Enhancer
java.lang.Object
org.hibernate.bytecode.enhance.spi.Enhancer
public class Enhancer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Enhancer
public Enhancer(EnhancementContext enhancementContext)
- Constructs the Enhancer, using the given context.
- Parameters:
enhancementContext
- Describes the context in which enhancement will occur so as to give access
to contextual/environmental information.
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
enhanceComposite
public byte[] enhanceComposite(String className,
byte[] originalBytes)
throws EnhancementException
- Throws:
EnhancementException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.