bootique/src/main/java/io/bootique/Bootique.java
@SafeVarargs
    public final BQModuleOverrideBuilder<Bootique> override(Class<? extends BQModule>... overriddenTypes) {
        return new BQModuleOverrideBuilder<Bootique>() {

            @Override
            public Bootique with(Class<? extends BQModule> moduleType) {

                providers.add(new BQModuleProvider() {

                    @Override
                    public BQModule module() {
                        return createModule(moduleType);
                    }

                    @Override
                    public Collection<Class<? extends BQModule>> overrides() {
                        return Arrays.asList(overriddenTypes);
                    }
                });

                return Bootique.this;
            }

            @Override
            public Bootique with(BQModule module) {
                providers.add(new BQModuleProvider() {

                    @Override
                    public BQModule module() {
                        return module;
                    }

                    @Override
                    public Collection<Class<? extends BQModule>> overrides() {
                        return Arrays.asList(overriddenTypes);
                    }
                });

                return Bootique.this;
            }
        };
    }
/**
     * Starts an API call chain to override an array of Modules.
     *
     * @param overriddenTypes an array of modules whose bindings should be overridden.
     * @return {@link BQModuleOverrideBuilder} object to specify a Module
     * overriding other modules.
     */
Starts an API call chain to override an array of Modules.
@param overriddenTypes an array of modules whose bindings should be overridden.
@return  BQModuleOverrideBuilder object to specify a Module
overriding other modules.
Starts an API call chain to override an array of Modules . @param overriddenTypes an array of modules whose bindings should be overridden . @return BQModuleOverrideBuilder object to specify a Module overriding other modules .
@SafeVarargs
    public final BQModuleOverrideBuilder<Bootique> override(Class<? extends BQModule>... overriddenTypes) {
        return new BQModuleOverrideBuilder<Bootique>() {
            @Override
            public Bootique with(Class<? extends BQModule> moduleType) {
                providers.add(new BQModuleProvider() {
                    @Override
                    public BQModule module() {
                        return createModule(moduleType);
                    }
                    @Override
                    public Collection<Class<? extends BQModule>> overrides() {
                        return Arrays.asList(overriddenTypes);
                    }
                });
                return Bootique.this;
            }
            @Override
            public Bootique with(BQModule module) {
                providers.add(new BQModuleProvider() {
                    @Override
                    public BQModule module() {
                        return module;
                    }
                    @Override
                    public Collection<Class<? extends BQModule>> overrides() {
                        return Arrays.asList(overriddenTypes);
                    }
                });
                return Bootique.this;
            }
        };
    }
@ SafeVarargs public final BQModuleOverrideBuilder < Bootique > override ( Class < ? extends BQModule > ... overriddenTypes ) { return new BQModuleOverrideBuilder < Bootique > ( ) { @ Override public Bootique with ( Class < ? extends BQModule > moduleType ) { providers . add ( new BQModuleProvider ( ) { @ Override public BQModule module ( ) { return createModule ( moduleType ) ; } @ Override public Collection < Class < ? extends BQModule > > overrides ( ) { return Arrays . asList ( overriddenTypes ) ; } } ) ; return Bootique . this ; } @ Override public Bootique with ( BQModule module ) { providers . add ( new BQModuleProvider ( ) { @ Override public BQModule module ( ) { return module ; } @ Override public Collection < Class < ? extends BQModule > > overrides ( ) { return Arrays . asList ( overriddenTypes ) ; } } ) ; return Bootique . this ; } } ; }
Starts an API call chain to override an array of Modules.
Starts an API call chain to override an array of Modules .