类 EnhancerImpl
- java.lang.Object
-
- org.hibernate.bytecode.enhance.internal.javassist.EnhancerImpl
-
- 所有已实现的接口:
Enhancer
- 直接已知子类:
PersistentAttributesEnhancer
public class EnhancerImpl extends Object implements Enhancer
-
-
字段概要
字段 修饰符和类型 字段 说明 protected JavassistEnhancementContextenhancementContext
-
构造器概要
构造器 构造器 说明 EnhancerImpl(EnhancementContext enhancementContext)Constructs the Enhancer, using the given context.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidaddInterceptorHandling(javassist.CtClass managedCtClass)byte[]enhance(String className, byte[] originalBytes)Performs the enhancement.protected javassist.CtClassloadCtClassFromClass(Class<?> aClass)
-
-
-
字段详细资料
-
enhancementContext
protected final JavassistEnhancementContext enhancementContext
-
-
构造器详细资料
-
EnhancerImpl
public EnhancerImpl(EnhancementContext enhancementContext)
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.
-
-
方法详细资料
-
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
-
loadCtClassFromClass
protected javassist.CtClass loadCtClassFromClass(Class<?> aClass)
-
addInterceptorHandling
protected void addInterceptorHandling(javassist.CtClass managedCtClass)
-
-