Package org.apache.cayenne.di
Class DIBootstrap
java.lang.Object
org.apache.cayenne.di.DIBootstrap
A class that bootstraps the Cayenne DI container.
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
DIBootstrap
public DIBootstrap()
-
-
Method Details
-
createInjector
Creates and returns an injector instance working with the set of provided modules.- Throws:
DIRuntimeException
-
createInjector
Creates and returns an injector instance working with the set of provided modules.
-