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

com.zusmart.sample.interceptor.MemberServiceInterceptor Maven / Gradle / Ivy

The newest version!
package com.zusmart.sample.interceptor;

import java.lang.reflect.Method;

import com.zusmart.inject.annotation.Component;
import com.zusmart.inject.annotation.Interceptor;
import com.zusmart.inject.interceptor.InterceptorFactory;

@Component
@Interceptor("com.zusmart.sample.biz.impl.MemberBizImpl")
public class MemberServiceInterceptor extends InterceptorFactory{

	@Override
	protected void onBefore(Class targetClass, Method targetMethod, Object[] arguments) throws Throwable {
		System.err.println("第二重代理拦截 before");
	}

	@Override
	protected void onAfter(Class targetClass, Method targetMethod, Object[] arguments, Object result) throws Throwable {
		System.err.println("第二重代理拦截 after");
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy