static BeanContextBuilder |
BeanContext.newBuilder() |
Build a bean context with options for shutdown hook and supplying test doubles.
|
<D> BeanContextBuilder |
BeanContextBuilder.withBean(Class<D> type,
D bean) |
Add a supplied bean instance with the given injection type.
|
BeanContextBuilder |
BeanContextBuilder.withBeans(Object... beans) |
Supply a bean to the context that will be used instead of any
similar bean in the context.
|
BeanContextBuilder |
BeanContextBuilder.withIgnoreMissingModuleDependencies() |
Set this when building a BeanContext (typically for testing) and supplied beans replace module dependencies.
|
BeanContextBuilder |
BeanContextBuilder.withMock(Class<?> type) |
Use a mockito mock when injecting this bean type.
|
<D> BeanContextBuilder |
BeanContextBuilder.withMock(Class<D> type,
Consumer<D> consumer) |
Use a mockito mock when injecting this bean type additionally
running setup on the mock instance.
|
BeanContextBuilder |
BeanContextBuilder.withModules(String... modules) |
Specify the modules to include in dependency injection.
|
BeanContextBuilder |
BeanContextBuilder.withNoShutdownHook() |
Create the bean context without registering a shutdown hook.
|
BeanContextBuilder |
BeanContextBuilder.withSpy(Class<?> type) |
Use a mockito spy when injecting this bean type.
|
<D> BeanContextBuilder |
BeanContextBuilder.withSpy(Class<D> type,
Consumer<D> consumer) |
Use a mockito spy when injecting this bean type additionally
running setup on the spy instance.
|