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

How to use
autoLoadedProviders
method
in
io.bootique.Bootique

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

origin: bootique/bootique

Injector createInjector() {
  DeferredModulesSource modulesSource = new DeferredModulesSource();
  Collection<BQModule> bqModules = new ArrayList<>();
  // note that 'moduleMetadata' is invalid at this point; it will be initialized later in this method, which
  // is safe to do, as it won't be used until the Injector is created by the method caller.
  bqModules.add(coreModuleProvider(modulesSource).moduleBuilder().build());
  BootiqueUtils.moduleProviderDependencies(builderProviders())
      .forEach(p -> bqModules.add(p.moduleBuilder().build()));
  if (autoLoadModules) {
    autoLoadedProviders().forEach(p -> bqModules.add(p.moduleBuilder().build()));
  }
  // now that all modules are collected, finish 'moduleMetadata' initialization
  modulesSource.init(bqModules);
  // convert to Guice modules respecting overrides, etc.
  Collection<Module> modules = new RuntimeModuleMerger(bootLogger).toGuiceModules(bqModules);
  return Guice.createInjector(modules);
}
origin: io.bootique/bootique

Injector createInjector() {
  DeferredModulesSource modulesSource = new DeferredModulesSource();
  Collection<BQModule> bqModules = new ArrayList<>();
  // note that 'moduleMetadata' is invalid at this point; it will be initialized later in this method, which
  // is safe to do, as it won't be used until the Injector is created by the method caller.
  bqModules.add(coreModuleProvider(modulesSource).moduleBuilder().build());
  BootiqueUtils.moduleProviderDependencies(builderProviders())
      .forEach(p -> bqModules.add(p.moduleBuilder().build()));
  if (autoLoadModules) {
    autoLoadedProviders().forEach(p -> bqModules.add(p.moduleBuilder().build()));
  }
  // now that all modules are collected, finish 'moduleMetadata' initialization
  modulesSource.init(bqModules);
  // convert to Guice modules respecting overrides, etc.
  Collection<Module> modules = new RuntimeModuleMerger(bootLogger).toGuiceModules(bqModules);
  return Guice.createInjector(modules);
}
io.bootiqueBootiqueautoLoadedProviders

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
  • module
  • <init>
  • args
    Appends extra values to Bootique CLI arguments.
  • bootLogger
    Optionally overrides Bootique's BootLogger.
  • builderProviders
  • coreModuleProvider
  • createBootLogger
  • createInjector
  • createJVMShutdownHook
  • createInjector,
  • createJVMShutdownHook,
  • createModule,
  • createShutdownManager,
  • exec,
  • getArgsAsString,
  • modules,
  • override,
  • processExceptions

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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