Modifier and Type | Field and Description |
---|---|
protected org.hibernate.bytecode.enhance.internal.bytebuddy.ByteBuddyEnhancementContext |
enhancementContext |
Constructor and Description |
---|
EnhancerImpl(EnhancementContext enhancementContext,
ByteBuddyState byteBuddyState)
Constructs the Enhancer, using the given context.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
enhance(String className,
byte[] originalBytes)
Performs the enhancement.
|
protected final org.hibernate.bytecode.enhance.internal.bytebuddy.ByteBuddyEnhancementContext enhancementContext
public EnhancerImpl(EnhancementContext enhancementContext, ByteBuddyState byteBuddyState)
enhancementContext
- Describes the context in which enhancement will occur so as to give access
to contextual/environmental information.byteBuddyState
- refers to the ByteBuddy instance to usepublic byte[] enhance(String className, byte[] originalBytes) throws EnhancementException
enhance
in interface Enhancer
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 © 2020 JBoss by Red Hat. All rights reserved.