- java.lang.Object
-
- org.redkale.asm.AsmMethodBoost
-
- org.redkale.cached.spi.CachedAsmMethodBoost
-
public class CachedAsmMethodBoost extends org.redkale.asm.AsmMethodBoost动态字节码的方法扩展器- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
-
-
构造器概要
构造器 构造器 说明 CachedAsmMethodBoost(boolean remote, Class serviceType)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddoInstance(ResourceFactory resourceFactory, Object service)实例对象进行操作,通常用于给动态的字段赋值StringdoMethod(ClassLoader classLoader, org.redkale.asm.ClassWriter cw, String newDynName, String fieldPrefix, List filterAnns, Method method, String newMethodName)对方法进行动态加强处理List<Class<? extends Annotation>>filterMethodAnnotations(Method method)获取需屏蔽的方法上的注解
-
-
-
构造器详细资料
-
CachedAsmMethodBoost
public CachedAsmMethodBoost(boolean remote, Class serviceType)
-
-
方法详细资料
-
filterMethodAnnotations
public List<Class<? extends Annotation>> filterMethodAnnotations(Method method)
从类复制的说明:org.redkale.asm.AsmMethodBoost获取需屏蔽的方法上的注解- 指定者:
filterMethodAnnotations在类中org.redkale.asm.AsmMethodBoost- 参数:
method- 方法- 返回:
- 需要屏蔽的注解
-
doMethod
public String doMethod(ClassLoader classLoader, org.redkale.asm.ClassWriter cw, String newDynName, String fieldPrefix, List filterAnns, Method method, String newMethodName)
从类复制的说明:org.redkale.asm.AsmMethodBoost对方法进行动态加强处理- 指定者:
doMethod在类中org.redkale.asm.AsmMethodBoost- 参数:
classLoader- ClassLoadercw- 动态字节码WriternewDynName- 动态新类名fieldPrefix- 动态字段的前缀filterAnns- 需要过滤的注解method- 操作的方法newMethodName- 新的方法名, 可能为null- 返回:
- 下一个新的方法名,不做任何处理应返回参数newMethodName
-
doInstance
public void doInstance(ResourceFactory resourceFactory, Object service)
从类复制的说明:org.redkale.asm.AsmMethodBoost实例对象进行操作,通常用于给动态的字段赋值- 指定者:
doInstance在类中org.redkale.asm.AsmMethodBoost- 参数:
resourceFactory- ResourceFactoryservice- 实例对象
-
-