class AnnotatedMethodScanner {

    synchronized Set<BeanDefinition> findCandidateBeans(String scanBase,
            Class<? extends Annotation> annotatedClass) {
        provider.resetFilters(false);
        provider.addIncludeFilter(new AnnotatedMethodFilter(annotatedClass));

        String basePackage = scanBase.replace('.', '/');
        return provider.findCandidateComponents(basePackage);
    }

    public  AnnotatedMethodScanner();
      AnnotatedMethodScanner(ClassLoader classLoader, ClassPathScanningCandidateComponentProvider provider);

}