Uses of Interface
io.avaje.inject.BeanScopeBuilder
Packages that use BeanScopeBuilder
Package
Description
Avaje Inject API - see
BeanScope
.Building bean scope objects expected to only be used by generated code.
-
Uses of BeanScopeBuilder in io.avaje.inject
Subinterfaces of BeanScopeBuilder in io.avaje.injectModifier and TypeInterfaceDescriptionstatic interface
Extends the building with testing specific support for mocks and spies.Methods in io.avaje.inject that return BeanScopeBuilderModifier and TypeMethodDescriptionBeanScopeBuilder.addPostConstruct
(Runnable postConstructHook) Adds hooks that will execute after this scope is built.BeanScopeBuilder.addPostConstruct
(Consumer<BeanScope> postConstructHook) Adds hook that will execute after this scope is built.BeanScopeBuilder.addPreDestroy
(AutoCloseable preDestroyHook) Add hook that will execute before this scope is destroyed.BeanScopeBuilder.addPreDestroy
(AutoCloseable preDestroyHook, int priority) Add hook with a priority that will execute before this scope is destroyed.<D> BeanScopeBuilder
Add a supplied bean instance with the given injection type (typically an interface type).<D> BeanScopeBuilder
Add a supplied bean instance with a generic type.<D> BeanScopeBuilder
Add a supplied bean instance with the given name and injection type.<D> BeanScopeBuilder
Add a supplied bean instance with the given name and generic type.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.classLoader
(ClassLoader classLoader) Set the ClassLoader to use when loading modules.Specify the modules to include in dependency injection.Use the given BeanScope as the parent.Use the given BeanScope as the parent additionally specifying if beans added will effectively override beans that exist in the parent scope.Set the explicit profiles to use when building the scope.default <D> BeanScopeBuilder
BeanScopeBuilder.provideDefault
(Type type, Supplier<D> provider) Add a supplied bean provider that acts as a default fallback for a dependency.<D> BeanScopeBuilder
BeanScopeBuilder.provideDefault
(String name, Type type, Supplier<D> provider) Add a supplied bean provider that acts as a default fallback for a dependency.BeanScopeBuilder.shutdownHook
(boolean shutdownHook) Create the bean scope registering a shutdown hook (defaults to false, no shutdown hook). -
Uses of BeanScopeBuilder in io.avaje.inject.spi
Methods in io.avaje.inject.spi with parameters of type BeanScopeBuilderModifier and TypeMethodDescriptionvoid
Plugin.apply
(BeanScopeBuilder builder) Apply the plugin to the scope builder.