类 EnhancerImpl
- java.lang.Object
-
- org.hibernate.bytecode.enhance.internal.bytebuddy.EnhancerImpl
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.hibernate.bytecode.enhance.internal.bytebuddy.ByteBuddyEnhancementContextenhancementContext
-
构造器概要
构造器 构造器 说明 EnhancerImpl(EnhancementContext enhancementContext, ByteBuddyState byteBuddyState)Constructs the Enhancer, using the given context.
-
-
-
构造器详细资料
-
EnhancerImpl
public EnhancerImpl(EnhancementContext enhancementContext, ByteBuddyState byteBuddyState)
Constructs the Enhancer, using the given context.- 参数:
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 use
-
-
方法详细资料
-
enhance
public byte[] enhance(String className, byte[] originalBytes) throws EnhancementException
Performs the enhancement.- 指定者:
enhance在接口中Enhancer- 参数:
className- The name of the class whose bytecode is being enhanced.originalBytes- The class's original (pre-enhancement) byte code- 返回:
- 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.
- 抛出:
EnhancementException- Indicates a problem performing the enhancement
-
-