Annotation Interface Tenant
CDI qualifier for tenant-specific beans.
Use this qualifier on AgentExecutor
and AgentCard producer methods to declare per-tenant
implementations:
@Produces @Tenant("acme")
AgentExecutor acmeExecutor() { return new AcmeAgentExecutor(); }
@Produces @Tenant("acme") @ExtendedAgentCard
AgentCard acmeExtendedCard() { return AgentCard.builder()...build(); }
The value() is a binding member — CDI Instance.select() matches by value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAnnotationLiteralfor programmatic CDI lookups. -
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe tenant identifier.- Returns:
- the tenant identifier
-