Class A2aSkillRegistry
java.lang.Object
com.xebialabs.xlrelease.a2a.server.A2aSkillRegistry
The live set of skills the A2A server serves: the host's built-in skills (seeded at
construction, never removable) plus plugin-contributed ones that come and go with their
bundles. The card and endpoint servlets read it per request, so a contribution shows up on the
Agent Card the moment its bundle starts — the A2A counterpart of the MCP server's runtime tool
list.
Skill ids are the namespace: a contribution whose id collides with an existing skill —
built-in or contributed — is refused and logged, never silently overriding. First one wins;
plugins do not get to shadow request-deployment-approval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()A stable snapshot for one request (card build or skill selection).The skill with this id, ornull.booleanregister(A2aServerSkill skill) Registers a contributed skill; refused (with a log line naming both parties) when the id is taken.voidunregister(String skillId) Removes a contributed skill by id; built-in ids are never removed.
-
Constructor Details
-
A2aSkillRegistry
-
-
Method Details
-
all
A stable snapshot for one request (card build or skill selection). -
byId
The skill with this id, ornull. -
register
Registers a contributed skill; refused (with a log line naming both parties) when the id is taken.- Returns:
- whether the skill was registered — the caller tracks only accepted ids for removal
-
unregister
Removes a contributed skill by id; built-in ids are never removed.
-