org.nutz.aop.ClassAgent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.aop;
/**
* 类定义的代理
*
* @author zozoh([email protected])
*/
public interface ClassAgent {
String CLASSNAME_SUFFIX = "$$NUTZAOP";
/**
* 定义一个新的类对象
*
* @param cd
* 字节码生成器
* @param klass
* 参照类对象
* @return 新的类对象
*/
Class define(ClassDefiner cd, Class klass);
/**
* 添加拦截器
*
* @param matcher
* 方法匹配器
* @param inte
* 拦截器
* @return 添加完成后的ClassAgent
*/
ClassAgent addInterceptor(MethodMatcher matcher, MethodInterceptor inte);
}