DIBootstrap (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.di, class: DIBootstrap

# Class DIBootstrap

java.lang.Object
org.apache.cayenne.di.DIBootstrap

public class DIBootstrap extends Object
A class that bootstraps the Cayenne DI container.

Since:
  3.1

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DIBootstrap()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Injector`
  `createInjector(Collection<Module> modules)`
  Creates and returns an injector instance working with the set of provided modules.
  `static Injector`
  `createInjector(Module... modules)`
  Creates and returns an injector instance working with the set of provided modules.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DIBootstrap

    public DIBootstrap()

- ## Method Details

  - ### createInjector

    public static Injector createInjector(Module... modules) throws DIRuntimeException
    Creates and returns an injector instance working with the set of provided modules.
    Throws:
      `DIRuntimeException`

  - ### createInjector

    public static Injector createInjector(Collection<Module> modules)
    Creates and returns an injector instance working with the set of provided modules.