Class HitlRegistrationExtension
- All Implemented Interfaces:
AgentRegistrationExtension
@RequiresApproval-annotated behaviors at agent registration time,
discovered via ServiceLoader.- Since:
- 0.25.0
- See Also:
-
Field Summary
Fields inherited from interface dev.agenor.core.spi.AgentRegistrationExtension
OPTIONAL_FEATURE_ANNOTATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends Annotation>> The annotations this extension acts on, for diagnostics.voidonAgentRegistered(Agent agent, RegistrationContext context) Called once foragentduringregisterAgent().
-
Constructor Details
-
HitlRegistrationExtension
public HitlRegistrationExtension()
-
-
Method Details
-
onAgentRegistered
Description copied from interface:AgentRegistrationExtensionCalled once foragentduringregisterAgent().- Specified by:
onAgentRegisteredin interfaceAgentRegistrationExtension- Parameters:
agent- the agent being registered; nevernullcontext- runtime services available to this extension; nevernull
-
handledAnnotations
Description copied from interface:AgentRegistrationExtensionThe annotations this extension acts on, for diagnostics.The runtime uses the union of these sets to detect annotations that no loaded extension claims — the signature of a missing optional module — and reports them once at startup. It is never used to decide whether
AgentRegistrationExtension.onAgentRegistered(Agent, RegistrationContext)is invoked: every registered extension is always invoked for every agent, whatever this returns.Claiming an annotation asserts only that this extension processes it, not that it will have an effect on every agent carrying it — an extension that applies to a specific agent type should say so itself when it sees the annotation on an agent it cannot serve.
Defaults to the empty set, so extensions written before this method existed keep compiling and working; they simply claim nothing.
- Specified by:
handledAnnotationsin interfaceAgentRegistrationExtension- Returns:
@RequiresApproval, which this extension processes- Since:
- 0.26.0
-