/** * Add Play bindings. */ public final Self bindings(play.api.inject.Binding<?>... bindings) { return bindings(Guiceable.bindings(bindings)); }
/** * Add additional configuration. * * @param key a configuration key to set * @param value the associated value for <code>key</code> * @return a copy of this builder configured with the key=value */ public final Self configure(String key, Object value) { return configure(ImmutableMap.of(key, value)); }
/** * Set the environment path. * * @param path the path to configure * @return a copy of this builder with the new path */ public final Self in(File path) { return newBuilder(delegate.in(path)); }
/** * Override bindings using Play modules. */ public final Self overrides(play.api.inject.Module... modules) { return overrides(Guiceable.modules(modules)); }
/** * Override bindings using Guice modules. */ public final Self overrides(com.google.inject.Module... modules) { return overrides(Guiceable.modules(modules)); }
/** * Set the environment class loader. * * @param classLoader the class loader to use * @return a copy of this builder configured with the class loader */ public final Self in(ClassLoader classLoader) { return newBuilder(delegate.in(classLoader)); }
/** * Add bindings from Guice modules. * * @param modules the set of Guice modules whose bindings to apply * @return a copy of this builder configured with the provided bindings */ public final Self bindings(Module... modules) { return bindings(Guiceable.modules(modules)); }
/** * Override bindings using Play bindings. * * @param bindings a set of Play bindings that override some previously configured ones * @return a copy of this builder re-configured with the provided bindings */ public final Self overrides(play.api.inject.Binding<?>... bindings) { return overrides(Guiceable.bindings(bindings)); }
/** * Add additional configuration. * * @param key a configuration key to set * @param value the associated value for <code>key</code> * @return a copy of this builder configured with the key=value */ public final Self configure(String key, Object value) { return configure(ImmutableMap.of(key, value)); }
/** * Set the environment class loader. * * @param classLoader the class loader to use * @return a copy of this builder configured with the class loader */ public final Self in(ClassLoader classLoader) { return newBuilder(delegate.in(classLoader)); }
/** * Add bindings from Guice modules. * * @param modules the set of Guice modules whose bindings to apply * @return a copy of this builder configured with the provided bindings */ public final Self bindings(Module... modules) { return bindings(Guiceable.modules(modules)); }
/** * Override bindings using Play bindings. */ public final Self overrides(play.api.inject.Binding<?>... bindings) { return overrides(Guiceable.bindings(bindings)); }
/** * Add additional configuration. */ public final Self configure(String key, Object value) { return configure(ImmutableMap.of(key, value)); }
/** * Set the environment path. */ public final Self in(File path) { return newBuilder(delegate.in(path)); }
/** * Add bindings from Play modules. */ public final Self bindings(play.api.inject.Module... modules) { return bindings(Guiceable.modules(modules)); }
/** * Override bindings using Play modules. * * @param modules the set of Play modules whose bindings override some previously configured ones * @return a copy of this builder re-configured with the provided bindings */ public final Self overrides(play.api.inject.Module... modules) { return overrides(Guiceable.modules(modules)); }
/** * Add additional configuration. * * @param conf the configuration to add * @return a copy of this builder configured with the supplied configuration */ public final Self configure(Map<String, Object> conf) { return configure(ConfigFactory.parseMap(conf)); }
/** * Set the environment class loader. */ public final Self in(ClassLoader classLoader) { return newBuilder(delegate.in(classLoader)); }
/** * Add bindings from Play modules. * * @param modules the set of Guice modules whose bindings to apply * @return a copy of this builder configured with the provided bindings */ public final Self bindings(play.api.inject.Module... modules) { return bindings(Guiceable.modules(modules)); }
/** * Override bindings using Play bindings. * * @param bindings a set of Play bindings that override some previously configured ones * @return a copy of this builder re-configured with the provided bindings */ public final Self overrides(play.api.inject.Binding<?>... bindings) { return overrides(Guiceable.bindings(bindings)); }