Class DPIApplicationContextInitializer

java.lang.Object
io.github.jspinak.brobot.config.dpi.DPIApplicationContextInitializer
All Implemented Interfaces:
ApplicationContextInitializer<ConfigurableApplicationContext>

@Order(-2147483648) public class DPIApplicationContextInitializer extends Object implements ApplicationContextInitializer<ConfigurableApplicationContext>
Spring ApplicationContextInitializer that ensures DPI awareness is disabled before any Spring beans are created or AWT classes are loaded.

This initializer runs very early in the Spring Boot startup process, before the application context is refreshed and before any beans are instantiated.

To use this initializer, it must be registered in one of these ways:

  • In META-INF/spring.factories
  • Via SpringApplication.addInitializers()
  • Via application.properties: context.initializer.classes
Since:
1.1.0