run

open fun run(consumer: ContextConsumer<in A>): SELF

Create and refresh a new ApplicationContext based on the current state of this loader. The context is consumed by the specified consumer and closed upon completion.

Return

this instance

Parameters

consumer

the consumer of the created ApplicationContext