static BeanScopeBuilder |
BeanScope.newBuilder() |
Build a bean scope with options for shutdown hook and supplying external dependencies.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.withBean(Class<D> type,
D bean) |
Add a supplied bean instance with the given injection type (typically an interface type).
|
<D> BeanScopeBuilder |
BeanScopeBuilder.withBean(Type type,
D bean) |
Add a supplied bean instance with a generic type.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.withBean(String name,
Class<D> type,
D bean) |
Add a supplied bean instance with the given name and injection type.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.withBean(String name,
Type type,
D bean) |
Add a supplied bean instance with the given name and generic type.
|
BeanScopeBuilder |
BeanScopeBuilder.withBeans(Object... beans) |
Supply a bean to the scope that will be used instead of any
similar bean in the scope.
|
BeanScopeBuilder |
BeanScopeBuilder.withModules(Module... modules) |
Specify the modules to include in dependency injection.
|
BeanScopeBuilder |
BeanScopeBuilder.withParent(BeanScope parent) |
Use the given BeanScope as the parent.
|
BeanScopeBuilder |
BeanScopeBuilder.withParent(BeanScope parent,
boolean parentOverride) |
Use the given BeanScope as the parent additionally specifying if beans
added will effectively override beans that exist in the parent scope.
|
BeanScopeBuilder |
BeanScopeBuilder.withShutdownHook(boolean shutdownHook) |
Create the bean scope registering a shutdown hook (defaults to false, no shutdown hook).
|