of

Creates an ApplicationContextFactory that will create contexts by calling the given Supplier.

Return

the factory that will instantiate the context class

Parameters

supplier

the context supplier, for example AnnotationConfigApplicationContext::new