ApplicationContextRunner
An ApplicationContext runner for a standard, non-web environment ConfigurableApplicationContext.
See AbstractApplicationContextRunner for details.
Author
Stephane Nicoll
Andy Wilkinson
Phillip Webb
Since
2.0.0
Constructors
Link copied to clipboard
constructor()
Create a new ApplicationContextRunner instance using an AnnotationConfigApplicationContext as the underlying source.
Create a new ApplicationContextRunner instance using the specified
contextFactory
as the underlying source.constructor(contextFactory: Supplier<ConfigurableApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>)
Create a new ApplicationContextRunner instance using the specified
contextFactory
as the underlying source.Functions
Link copied to clipboard
Prepare a new ApplicationContext based on the current state of this loader.
Link copied to clipboard
Create and refresh a new ApplicationContext based on the current state of this loader.
Link copied to clipboard
Specify if bean definition overriding, by registering a definition with the same name as an existing definition, should be allowed.
Link copied to clipboard
Specify if circular references between beans should be allowed.
Link copied to clipboard
Link copied to clipboard
Customize the ClassLoader that the ApplicationContext should use for resource loading and bean class loading.
Link copied to clipboard
Register the specified configuration classes with the ApplicationContext.
Link copied to clipboard
Add an ApplicationContextInitializer to be called when the context is created.
Link copied to clipboard
Configure the parent of the ApplicationContext.
Link copied to clipboard
Add the specified Environment property pairs.
Link copied to clipboard
Add the specified System property pairs.
Link copied to clipboard
Register the specified user configuration classes with the ApplicationContext.