public synchronized BeanBox addMethodAop(Object aop, String methodName, Class<?>... paramTypes) {
		checkOrCreateMethodAops();
		Method m = ReflectionUtils.findMethod(beanClass, methodName, paramTypes);
		BeanBoxException.assureNotNull(m, "Not found method: '" + methodName + "'");
		addMethodAop(aop, m);
		return this;
	}
public synchronized BeanBox addMethodAop ( Object aop , String methodName , Class < ? > ... paramTypes ) { checkOrCreateMethodAops ( ) ; Method m = ReflectionUtils . findMethod ( beanClass , methodName , paramTypes ) ; BeanBoxException . assureNotNull ( m , "Not found method: '" + methodName + "'" ) ; addMethodAop ( aop , m ) ; return this ; }
This is Java configuration method equal to put a AOP annotation on method. a
AOP annotation is a kind of annotation be binded to an AOP alliance
interceptor like ctx.bind(Tx.class, MyInterceptor.class); then you can put
a @Tx annotation on method. But this method allow aop can be annotation class
or interceptor class for both