Codota Logo
Bootique.module
Code IndexAdd Codota to your IDE (free)

How to use
module
method
in
io.bootique.Bootique

Best Java code snippets using io.bootique.Bootique.module (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: bootique/bootique

/**
 * @param m a module to add to the test runtime.
 * @return this instance of test runtime builder.
 */
public T module(Module m) {
  bootique.module(m);
  return (T) this;
}
origin: bootique/bootique

/**
 * Adds a Module generated by the provider. Provider may optionally specify
 * that the Module overrides services in some other Module.
 *
 * @param moduleProvider a provider of Module and override spec.
 * @return this instance of test runtime builder.
 */
public T module(BQModuleProvider moduleProvider) {
  bootique.module(moduleProvider);
  return (T) this;
}
origin: bootique/bootique

/**
 * @param moduleType custom Module class to add to Bootique DI runtime.
 * @return this instance of test runtime builder.
 * @see #autoLoadModules()
 */
public T module(Class<? extends Module> moduleType) {
  bootique.module(moduleType);
  return (T) this;
}
origin: bootique/bootique

/**
 * Adds an array of Module types to the Bootique DI runtime. Each type will
 * be instantiated by Bootique and added to the Guice DI container.
 *
 * @param moduleTypes custom Module classes to add to Bootique DI runtime.
 * @return this Bootique instance
 * @see #autoLoadModules()
 * @since 0.8
 */
@SafeVarargs
public final Bootique modules(Class<? extends Module>... moduleTypes) {
  for (Class<? extends Module> c : moduleTypes) {
    module(c);
  }
  return this;
}
origin: bootique/bootique

protected BQTestRuntimeBuilder(String[] args) {
  //exclude system variables and properties by setting the properties
  final HashMap<String, String> properties = new HashMap<>();
  properties.put(EXCLUDE_SYSTEM_PROPERTIES, "true");
  properties.put(EXCLUDE_SYSTEM_VARIABLES, "true");
  this.properties = properties;
  this.bootique = Bootique.app(args).module(createPropertiesProvider());
}
origin: io.bootique/bootique

/**
 * Adds an array of Module types to the Bootique DI runtime. Each type will
 * be instantiated by Bootique and added to the Guice DI container.
 *
 * @param moduleTypes custom Module classes to add to Bootique DI runtime.
 * @return this Bootique instance
 * @see #autoLoadModules()
 * @since 0.8
 */
@SafeVarargs
public final Bootique modules(Class<? extends Module>... moduleTypes) {
  Arrays.asList(moduleTypes).forEach(m -> module(m));
  return this;
}
io.bootiqueBootiquemodule

Javadoc

Adds a Module generated by the provider. Provider may optionally specify that the Module overrides services in some other Module.

Popular methods of Bootique

  • app
    Starts a builder of Bootique runtime.
  • autoLoadModules
    Instructs Bootique to load any modules available on class-path that expose BQModuleProvider provider
  • createRuntime
  • <init>
  • args
    Appends extra values to Bootique CLI arguments.
  • autoLoadedProviders
  • bootLogger
    Optionally overrides Bootique's BootLogger.
  • builderProviders
  • coreModuleProvider
  • createBootLogger
  • createInjector
  • createJVMShutdownHook
  • createInjector,
  • createJVMShutdownHook,
  • createModule,
  • createShutdownManager,
  • exec,
  • getArgsAsString,
  • modules,
  • override,
  • processExceptions

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now