@Test public void testGetMatchingInterceptors_methodName() throws SecurityException, NoSuchMethodException { Assert.assertTrue(metaDataBean.getMatchingInterceptors("", Simple_MyServiceInterface_Impl2.class.getDeclaredMethod("sayHello", new Class[]{})).size()==1); }
public List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method) { List<InterceptorInfo> matchingInterceptors = new ArrayList<InterceptorInfo>(); for (InterceptorInfo interceptorInfo : interceptors) { if (interceptorInfo.matches(beanName, method)) { matchingInterceptors.add(interceptorInfo); } } return matchingInterceptors; }
InterceptorMetaDataBean { public List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method) { List<InterceptorInfo> matchingInterceptors = new ArrayList<InterceptorInfo>(); for (InterceptorInfo interceptorInfo : interceptors) { if (interceptorInfo.matches(beanName, method)) { matchingInterceptors.add(interceptorInfo); } } return matchingInterceptors; } }
InterceptorMetaDataBean { public List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method) { List<InterceptorInfo> matchingInterceptors = new ArrayList<InterceptorInfo>(); for (InterceptorInfo interceptorInfo : interceptors) { if (interceptorInfo.matches(beanName, method)) { matchingInterceptors.add(interceptorInfo); } } return matchingInterceptors; } InterceptorMetaDataBean(List<InterceptorInfo> interceptors); }
InterceptorMetaDataBean { public List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method) { List<InterceptorInfo> matchingInterceptors = new ArrayList<InterceptorInfo>(); for (InterceptorInfo interceptorInfo : interceptors) { if (interceptorInfo.matches(beanName, method)) { matchingInterceptors.add(interceptorInfo); } } return matchingInterceptors; } InterceptorMetaDataBean(List<InterceptorInfo> interceptors); boolean isInterceptedBean(String beanName); List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method); List<InterceptorInfo> getInterceptors(); void setInterceptors(List<InterceptorInfo> interceptors); }
InterceptorMetaDataBean { public List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method) { List<InterceptorInfo> matchingInterceptors = new ArrayList<InterceptorInfo>(); for (InterceptorInfo interceptorInfo : interceptors) { if (interceptorInfo.matches(beanName, method)) { matchingInterceptors.add(interceptorInfo); } } return matchingInterceptors; } InterceptorMetaDataBean(List<InterceptorInfo> interceptors); boolean isInterceptedBean(String beanName); List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method); List<InterceptorInfo> getInterceptors(); void setInterceptors(List<InterceptorInfo> interceptors);  }