Interface AotContext.AotContextBuilder
- Enclosing interface:
AotContext
public static interface AotContext.AotContextBuilder
Builder to create
AotContext instances.- Since:
- 4.0.5
- Author:
- Christoph Strobl, John Blum, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionbeanFactory(BeanFactory beanFactory) Configure theBeanFactoryto use.build()Build theAotContextto use.customizeTypeCollector(Consumer<TypeCollector> typeCollectorConsumer) Provide a consumer to customizeTypeCollector.environment(Environment environment) Configure theEnvironmentto use.
-
Method Details
-
beanFactory
Configure theBeanFactoryto use. Must be provided.- Parameters:
beanFactory- the bean factory to use.- Returns:
- this builder.
-
environment
Configure theEnvironmentto use. Defaults toStandardEnvironmentif not configured.- Parameters:
environment- the environment to use.- Returns:
- this builder.
-
customizeTypeCollector
Provide a consumer to customizeTypeCollector.- Parameters:
typeCollectorConsumer- the consumer to configureTypeCollector.- Returns:
- this builder.
-
build
AotContext build()Build theAotContextto use. Building the AotContext requiresbeanFactory(BeanFactory)to be configured.- Returns:
- the build
AotContextto use.
-