Module io.inverno.core
Package io.inverno.core.v1
Interface Module.BeanBuilder<T,B extends Module.BeanBuilder<T,B>>
- Type Parameters:
T
- the actual type of the bean to buildB
- the bean builder type to support method chaining
- All Known Subinterfaces:
Module.ModuleBeanBuilder<P,
,T> Module.WrapperBeanBuilder<P,
T, W>
- Enclosing class:
Module
protected static interface Module.BeanBuilder<T,B extends Module.BeanBuilder<T,B>>
A BeanBuilder is used within a module class to create Module.Bean
instances.
A BeanBuilder is always created for a specific module instance.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Fallible consumer used to designates init and destroy methods which might throw checked exception. -
Method Summary
Modifier and TypeMethodDescriptiondestroy
(Module.BeanBuilder.FallibleConsumer<T> destroy) Adds a bean destruction operation.Adds a bean initialization operation.
-
Method Details
-
init
Adds a bean initialization operation.
- Parameters:
init
- the bean initialization operation.- Returns:
- this builder
-
destroy
Adds a bean destruction operation.
- Parameters:
destroy
- the bean destruction operation.- Returns:
- this builder
-