Class EmbabelDeclarationReader
- All Implemented Interfaces:
AgentDeclarationReader
@Agent for the core binder (reviews/embabel-agentspaces-review-2026-11-12.md
§7.2, §7.3), so a bean that is both an Embabel agent and a fleet worker gets one card, named by
@Agent(name), carrying the @Agent description and the @AchievesGoal goals.
Every @Action is classified (§7.3). One that carries a space annotation of its own is the core
binder's to bind, under that kind. One with no binding and exactly one entry parameter, an entry result, no
precondition and no other parameters is a map of 1: the reader asks the binder for an implied take,
advertised as an embabel-action with its space and served by writing the entry tagged
aspace.action=<agent>.<method>. One with a parameter Embabel resolves is served the same way once a
host registers a platform invoker (§7.8); until then it is advertised as local. What cannot be a map of
1 (several entry inputs, no entry result, a precondition on local state) is advertised as local, kept
off the card, or, under advertise-unserved: invocable, advertised as it was before this reader.
Loaded by ServiceLoader with the defaults below; a host registers a configured instance through
AgentSpaces.declarationReaders(List), which replaces the loaded one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe reader's settings.static enumWhat to do with an@Actionthe binder cannot serve. -
Constructor Summary
ConstructorsConstructorDescriptionThe ServiceLoader constructor, with the default settings. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AgentDeclarationReader
order
-
Constructor Details
-
EmbabelDeclarationReader
public EmbabelDeclarationReader()The ServiceLoader constructor, with the default settings. -
EmbabelDeclarationReader
-
-
Method Details
-
settings
-
read
Description copied from interface:AgentDeclarationReaderReads one class.- Specified by:
readin interfaceAgentDeclarationReader- Parameters:
userClass- the bean's user class (a proxy already unwrapped to the class it proxies)- Returns:
- the declaration, or empty when this reader does not recognise the class
-
register
Registers this reader for every binder in the JVM (the host's configured instance replaces the loaded one).
-