private void findAndRunScanners(Environment environment, Injector injector) {
    """
	Collects all classes extended {@link io.robe.guice.scanner.Scanner} and adds them to environment
	
	@param environment target environment
	@param injector    guice injector to create instances.
    """
        Set<Class<? extends Scanner>> scanners = reflections.getSubTypesOf(Scanner.class);
        for (Class<? extends Scanner> scanner : scanners) {
            try {
                LOGGER.info(scanner.getName() + ": ");
                Scanner instance = scanner.newInstance();
                instance.scanAndAdd(environment, injector, reflections);
            } catch (Exception e) {
                LOGGER.error("Added scanner: " + scanner, e);
            }
        }
    }
private void findAndRunScanners(Environment environment, Injector injector) {
        Set<Class<? extends Scanner>> scanners = reflections.getSubTypesOf(Scanner.class);
        for (Class<? extends Scanner> scanner : scanners) {
            try {
                LOGGER.info(scanner.getName() + ": ");
                Scanner instance = scanner.newInstance();
                instance.scanAndAdd(environment, injector, reflections);
            } catch (Exception e) {
                LOGGER.error("Added scanner: " + scanner, e);
            }
        }
    }
private void findAndRunScanners ( Environment environment , Injector injector ) { Set < Class < ? extends Scanner > > scanners = reflections . getSubTypesOf ( Scanner . class ) ; for ( Class < ? extends Scanner > scanner : scanners ) { try { LOGGER . info ( scanner . getName ( ) + ": " ) ; Scanner instance = scanner . newInstance ( ) ; instance . scanAndAdd ( environment , injector , reflections ) ; } catch ( Exception e ) { LOGGER . error ( "Added scanner: " + scanner , e ) ; } } }
Collects all classes extended {@link io.robe.guice.scanner.Scanner} and adds them to environment

@param environment target environment
@param injector    guice injector to create instances.
Collects all classes extended { @link io . robe . guice . scanner . Scanner } and adds them to environment