Class FluxzeroSpringConfig

java.lang.Object
io.fluxzero.sdk.configuration.spring.FluxzeroSpringConfig
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

@Configuration public class FluxzeroSpringConfig extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Spring configuration class for automatically wiring and initializing common Fluxzero components in a Spring application context.

This configuration simplifies the integration of Fluxzero by:

  • Registering @Handle... annotated beans as handlers after the context is refreshed
  • Auto-detecting and registering upcasters and downcasters with the Serializer
  • Providing default implementations for core interfaces like CommandGateway, Serializer, and MessageScheduler

Note that Fluxzero does not require Spring, and this class is entirely optional. It exists purely to reduce boilerplate in Spring-based applications.

The simplest way to enable this configuration in a Spring Boot application, is by annotating your main application class with:

@SpringBootApplication
@Import(FluxzeroSpringConfig.class)
See Also:
  • Constructor Details

    • FluxzeroSpringConfig

      @Autowired protected FluxzeroSpringConfig(org.springframework.context.ApplicationContext context)
      Stores a reference to the Spring context and prepares for handler detection.
  • Method Details