<D> BeanScopeBuilder |
BeanScopeBuilder.bean(Class<D> type,
D bean) |
Add a supplied bean instance with the given injection type (typically an interface type).
|
<D> BeanScopeBuilder |
BeanScopeBuilder.bean(Type type,
D bean) |
Add a supplied bean instance with a generic type.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.bean(String name,
Class<D> type,
D bean) |
Add a supplied bean instance with the given name and injection type.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.bean(String name,
Type type,
D bean) |
Add a supplied bean instance with the given name and generic type.
|
BeanScopeBuilder |
BeanScopeBuilder.beans(Object... beans) |
Supply a bean to the scope that will be used instead of any
similar bean in the scope.
|
static BeanScopeBuilder |
BeanScope.builder() |
Build a bean scope with options for shutdown hook and supplying external dependencies.
|
BeanScopeBuilder |
BeanScopeBuilder.classLoader(ClassLoader classLoader) |
Set the ClassLoader to use when loading modules.
|
BeanScopeBuilder |
BeanScopeBuilder.modules(Module... modules) |
Specify the modules to include in dependency injection.
|
static BeanScopeBuilder |
BeanScope.newBuilder() |
Deprecated.
|
BeanScopeBuilder |
BeanScopeBuilder.parent(BeanScope parent) |
Use the given BeanScope as the parent.
|
BeanScopeBuilder |
BeanScopeBuilder.parent(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.
|
default <D> BeanScopeBuilder |
BeanScopeBuilder.provideDefault(Type type,
javax.inject.Provider<D> provider) |
Add a supplied bean provider that acts as a default fallback for a dependency.
|
<D> BeanScopeBuilder |
BeanScopeBuilder.provideDefault(String name,
Type type,
javax.inject.Provider<D> provider) |
Add a supplied bean provider that acts as a default fallback for a dependency.
|
BeanScopeBuilder |
BeanScopeBuilder.shutdownHook(boolean shutdownHook) |
Create the bean scope registering a shutdown hook (defaults to false, no shutdown hook).
|
default <D> BeanScopeBuilder |
BeanScopeBuilder.withBean(Class<D> type,
D bean) |
Deprecated.
|
default <D> BeanScopeBuilder |
BeanScopeBuilder.withBean(Type type,
D bean) |
Deprecated.
|
default <D> BeanScopeBuilder |
BeanScopeBuilder.withBean(String name,
Class<D> type,
D bean) |
Deprecated.
|
default <D> BeanScopeBuilder |
BeanScopeBuilder.withBean(String name,
Type type,
D bean) |
Deprecated.
|
default BeanScopeBuilder |
BeanScopeBuilder.withBeans(Object... beans) |
Deprecated.
|
default BeanScopeBuilder |
BeanScopeBuilder.withModules(Module... modules) |
Deprecated.
|
default BeanScopeBuilder |
BeanScopeBuilder.withParent(BeanScope parent) |
Deprecated.
|
default BeanScopeBuilder |
BeanScopeBuilder.withParent(BeanScope parent,
boolean parentOverride) |
Deprecated.
|
default BeanScopeBuilder |
BeanScopeBuilder.withShutdownHook(boolean shutdownHook) |
Deprecated.
|