Class AgentAnnotationProcessor

java.lang.Object
dev.agenor.runtime.annotation.AgentAnnotationProcessor

public class AgentAnnotationProcessor extends Object
Processor for handling @Behavior and @AgenorMessageHandler annotations on agent classes.

Handles @AgenorMessageHandler and the @Behavior types whose implementation classes live in agenor-runtime (ONE_SHOT, CYCLIC, WAKER, EVENT_DRIVEN, CUSTOM) directly — no optional-module dependency. Every other @Behavior type is delegated to the BehaviorAnnotationExtension SPI, implemented by agenor-runtime-ext; when that extension is absent, using one of those types fails loudly with an IllegalStateException rather than being silently skipped.

Since:
0.25.0
  • Constructor Details

  • Method Details

    • processAnnotations

      public void processAnnotations(Agent agent)
      Process all annotations on an agent