Class TransitionAnnotationBeanPostProcessor

java.lang.Object
io.github.jspinak.brobot.annotations.TransitionAnnotationBeanPostProcessor
All Implemented Interfaces:
BeanPostProcessor

@Component public class TransitionAnnotationBeanPostProcessor extends Object implements BeanPostProcessor
BeanPostProcessor that detects and collects beans annotated with @TransitionSet.

This is necessary because Spring's getBeansWithAnnotation() method doesn't reliably detect beans with meta-annotations (like @TransitionSet which includes @Component).

This processor:

  1. Intercepts bean creation during Spring's initialization
  2. Checks if the bean's target class has @TransitionSet annotation
  3. Stores references to transition set beans for later processing

This approach is more reliable than getBeansWithAnnotation() for meta-annotations.

Since:
1.2.0
  • Constructor Details

    • TransitionAnnotationBeanPostProcessor

      public TransitionAnnotationBeanPostProcessor()
  • Method Details