robe-guice/src/main/java/io/robe/guice/GuiceBundle.java
@Override
    public void run(T configuration, Environment environment) {
        try {
            if (configuration.getGuice() == null) {
                LOGGER.error("GuiceBundle can not work without and configuration!");
            }
            GuiceBundle.configuration = configuration.getGuice();
            createReflections(configuration.getGuice().getScanPackages());
            JerseyUtil.registerGuiceBound(injector, environment.jersey());
            JerseyUtil.registerGuiceFilter(environment);
            deModule.setEnvironmentData(configuration, environment);
            findAndRunScanners(environment, injector);

        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
        }

    }
@Override
    public void run(T configuration, Environment environment) {
        try {
            if (configuration.getGuice() == null) {
                LOGGER.error("GuiceBundle can not work without and configuration!");
            }
            GuiceBundle.configuration = configuration.getGuice();
            createReflections(configuration.getGuice().getScanPackages());
            JerseyUtil.registerGuiceBound(injector, environment.jersey());
            JerseyUtil.registerGuiceFilter(environment);
            deModule.setEnvironmentData(configuration, environment);
            findAndRunScanners(environment, injector);

        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
        }

    }
@ Override public void run ( T configuration , Environment environment ) { try { if ( configuration . getGuice ( ) == null ) { LOGGER . error ( "GuiceBundle can not work without and configuration!" ) ; } GuiceBundle . configuration = configuration . getGuice ( ) ; createReflections ( configuration . getGuice ( ) . getScanPackages ( ) ) ; JerseyUtil . registerGuiceBound ( injector , environment . jersey ( ) ) ; JerseyUtil . registerGuiceFilter ( environment ) ; deModule . setEnvironmentData ( configuration , environment ) ; findAndRunScanners ( environment , injector ) ; } catch ( Exception e ) { LOGGER . error ( e . getMessage ( ) , e ) ; } }
Initializes the environment.

@param configuration the configuration object
@param environment   the io.robe.admin's {@link io.dropwizard.setup.Environment}
Initializes the environment .