withInitializer

open fun withInitializer(initializer: ApplicationContextInitializer<in C>): SELF

Add an ApplicationContextInitializer to be called when the context is created.

Return

a new instance with the updated initializers

Parameters

initializer

the initializer to add