Package com.bazaarvoice.snitch.scanner

Examples of com.bazaarvoice.snitch.scanner.ClassPathAnnotationScanner


    private Snitch(Configuration config) throws Exception {
        AnnotationScanner annotationScanner;
        List<String> packagesToScan = config.getPackagesToScan();
        if (packagesToScan != null && !packagesToScan.isEmpty()) {
            String[] packages = packagesToScan.toArray(new String[packagesToScan.size()]);
            annotationScanner = new ClassPathAnnotationScanner(packages);
        } else {
            annotationScanner = new ClassPathAnnotationScanner();
        }

        Class<? extends Annotation> annotationClass = loadAnnotationClass(config);
        NamingStrategy<? extends Annotation> namingStrategy = loadNamingStrategy(config);
        _variableRegistry = new VariableRegistry(annotationClass, annotationScanner, namingStrategy);
View Full Code Here

TOP

Related Classes of com.bazaarvoice.snitch.scanner.ClassPathAnnotationScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.