org.hibernate.bytecode.enhance.spi
Class Enhancer

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

public class Enhancer
extends Object


Constructor Summary
Enhancer(EnhancementContext enhancementContext)
          Constructs the Enhancer, using the given context.
 
Method Summary
 byte[] enhance(String className, byte[] originalBytes)
          Performs the enhancement.
 byte[] enhanceComposite(String className, byte[] originalBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
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

enhanceComposite

public byte[] enhanceComposite(String className,
                               byte[] originalBytes)
                        throws EnhancementException
Throws:
EnhancementException


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