public class Enhancer extends Object
Modifier and Type | Field and Description |
---|---|
protected javassist.CtClass |
attributeInterceptableCtClass |
protected javassist.CtClass |
attributeInterceptorCtClass |
protected javassist.ClassPool |
classPool |
protected EnhancementContext |
enhancementContext |
protected javassist.CtClass |
entityEntryCtClass |
protected javassist.CtClass |
managedCompositeCtClass |
protected javassist.CtClass |
managedEntityCtClass |
Constructor and Description |
---|
Enhancer(EnhancementContext enhancementContext)
Constructs the Enhancer, using the given context.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addInterceptorHandling(javassist.CtClass managedCtClass) |
byte[] |
enhance(String className,
byte[] originalBytes)
Performs the enhancement.
|
byte[] |
enhanceComposite(String className,
byte[] originalBytes)
Deprecated.
Should use enhance(String, byte[]) and a proper EnhancementContext
|
protected final EnhancementContext enhancementContext
protected final javassist.ClassPool classPool
protected final javassist.CtClass managedEntityCtClass
protected final javassist.CtClass managedCompositeCtClass
protected final javassist.CtClass attributeInterceptorCtClass
protected final javassist.CtClass attributeInterceptableCtClass
protected final javassist.CtClass entityEntryCtClass
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 enhancementprotected void addInterceptorHandling(javassist.CtClass managedCtClass)
@Deprecated public byte[] enhanceComposite(String className, byte[] originalBytes) throws EnhancementException
EnhancementException
Copyright © 2016 JBoss by Red Hat. All rights reserved.