Class SpringConfiguration

java.lang.Object
io.github.jspinak.brobot.config.core.SpringConfiguration

@Configuration @ComponentScan(basePackages="io.github.jspinak.brobot") public class SpringConfiguration extends Object
Spring configuration class for the Brobot library's dependency injection setup.

This configuration class serves as the central Spring configuration for the Brobot automation library. It enables component scanning to automatically detect and register Spring-managed beans throughout the library.

Key responsibilities:

  • Enables Spring's component scanning for automatic bean discovery
  • Provides a configuration entry point for the Brobot library
  • Allows the library to be integrated into Spring applications
  • Ensures all @Component, @Service, @Repository classes are registered

Component scanning behavior:

  • Base package: io.github.jspinak.brobot (inferred from class location)
  • Recursively scans all sub-packages
  • Registers all Spring-annotated classes as beans
  • Enables dependency injection throughout the library

Integration usage:

 // In a Spring Boot application
See Also:
  • Constructor Details

    • SpringConfiguration

      public SpringConfiguration()
      Default constructor for Spring configuration class.

      Empty constructor is explicitly defined to ensure Spring can instantiate this configuration class. No initialization logic is needed as all configuration is handled through annotations.