com.github.datalking.aop.framework.adapter.AdvisorAdapterRegistry Maven / Gradle / Ivy
package com.github.datalking.aop.framework.adapter;
import com.github.datalking.aop.Advisor;
import org.aopalliance.intercept.MethodInterceptor;
/**
* 注册advisor adapter的接口
*
* 是SPI接口
*
* @author yaoo on 4/19/18
*/
public interface AdvisorAdapterRegistry {
// 将advice包装成advisor
Advisor wrap(Object advice) ;
// 获取方法拦截器
MethodInterceptor[] getInterceptors(Advisor advisor) ;
// 注册AdvisorAdapter
void registerAdvisorAdapter(AdvisorAdapter adapter);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy