Class AnnotationProcessor
java.lang.Object
io.github.jspinak.brobot.annotations.AnnotationProcessor
Processes @State and @Transition annotations to automatically configure the Brobot state machine.
This processor: 1. Discovers all classes annotated with @State 2. Registers them with the StateTransitionsJointTable 3. Discovers all classes annotated with @Transition 4. Creates StateTransition objects and registers them 5. Marks initial states as specified by @State(initial = true)
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationProcessor
(ApplicationContext applicationContext, StateTransitionsJointTable jointTable, StateService stateService, StateTransitionService transitionService, InitialStates initialStates, AnnotatedStateBuilder stateBuilder, StateRegistrationService registrationService, ApplicationEventPublisher eventPublisher, StateAnnotationBeanPostProcessor stateBeanPostProcessor, TransitionAnnotationBeanPostProcessor transitionBeanPostProcessor, TransitionSetProcessor transitionSetProcessor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
void
Process annotations when application is ready.void
Process all @State and @Transition annotations.
-
Constructor Details
-
Method Details
-
init
@PostConstruct public void init() -
onApplicationReady
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) @Order(1) public void onApplicationReady(ApplicationReadyEvent event) Process annotations when application is ready. Also provides a public method that can be called manually if needed. -
processAnnotations
public void processAnnotations()Process all @State and @Transition annotations. This method can be called manually if needed (e.g., from InitializationOrchestrator).
-