prepare

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

Prepare a new ApplicationContext based on the current state of this loader. The context is consumed by the specified consumer and closed upon completion. Unlike run, this method does not refresh the consumed context.

Return

this instance

Since

3.0.0

Parameters

consumer

the consumer of the created ApplicationContext