All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.aop.ClassAgent Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy