public class Enhancer extends Object
Constructor and Description |
---|
Enhancer(EnhancementContext enhancementContext)
Constructs the Enhancer, using the given context.
|
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 enhancementCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.