Class StatefulPostProcessor

java.lang.Object
io.fluxzero.sdk.configuration.spring.StatefulPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.context.EnvironmentAware

public class StatefulPostProcessor extends Object
Spring BeanDefinitionRegistryPostProcessor that detects Stateful handler types within the application's component-scan scope and registers them as FluxzeroPrototype definitions for use in Fluxzero.

This keeps handler activation aligned with Spring's scan boundaries while avoiding regular Spring bean registration for the handler type itself.

Usage

To use this mechanism, annotate a type with @Stateful and ensure that it falls within your application's ComponentScan scope, for example via FluxzeroSpringConfig.
See Also:
  • Constructor Details

    • StatefulPostProcessor

      public StatefulPostProcessor()
  • Method Details

    • getTargetAnnotation

      protected Class<Stateful> getTargetAnnotation()
    • getBeanNameSuffix

      protected String getBeanNameSuffix()
    • postProcessBeanFactory

      public void postProcessBeanFactory(@NonNull @NonNull org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeanFactory in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
      Specified by:
      postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessBeanDefinitionRegistry

      public void postProcessBeanDefinitionRegistry(@NonNull @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware