public class Enhancer extends Object
| Constructor and Description | 
|---|
Enhancer(EnhancementContext enhancementContext)
Constructs the Enhancer, using the given context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
enhance(String className,
       byte[] originalBytes)
Performs the enhancement. 
 | 
byte[] | 
enhanceComposite(String className,
                byte[] originalBytes)  | 
public Enhancer(EnhancementContext enhancementContext)
enhancementContext - Describes the context in which enhancement will occur so as to give access
 to contextual/environmental information.public byte[] enhance(String className, byte[] originalBytes) throws EnhancementException
className - The name of the class whose bytecode is being enhanced.originalBytes - The class's original (pre-enhancement) byte codeEnhancementException - Indicates a problem performing the enhancementpublic byte[] enhanceComposite(String className, byte[] originalBytes) throws EnhancementException
EnhancementExceptionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.