ApplicationContextRunner
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.
Parameters
contextFactory
a supplier that returns a new instance on each call be addedto the application context proxy
constructor(contextFactory: Supplier<ConfigurableApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>)
Create a new ApplicationContextRunner instance using the specified contextFactory
as the underlying source.
Since
3.4.0
Parameters
contextFactory
a supplier that returns a new instance on each call
additionalContextInterfaces
any additional application context interfaces tobe added to the application context proxy