ApplicationContextFactory.of constructor

ApplicationContextFactory.of(
  1. Supplier<ConfigurableApplicationContext> supplier
)

Creates an ApplicationContextFactory that uses the provided supplier to construct the application context.

This allows full control over context instantiation.

Example:

var factory = ApplicationContextFactory.of(() => MyCustomContext());
var ctx = factory.create(ApplicationType.NONE);

Implementation

factory ApplicationContextFactory.of(Supplier<ConfigurableApplicationContext> supplier) = _ApplicationContextFactory;