Package dev.agenor.runtime.annotation
Class AgentAnnotationProcessor
java.lang.Object
dev.agenor.runtime.annotation.AgentAnnotationProcessor
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 Summary
ConstructorsConstructorDescriptionAgentAnnotationProcessor(TopicSubscriber topicSubscriber, Optional<BehaviorAnnotationExtension> extension) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAnnotations(Agent agent) Process all annotations on an agent
-
Constructor Details
-
AgentAnnotationProcessor
public AgentAnnotationProcessor(TopicSubscriber topicSubscriber, Optional<BehaviorAnnotationExtension> extension)
-
-
Method Details
-
processAnnotations
Process all annotations on an agent
-