Annotation Interface Tenant


@Qualifier @Retention(RUNTIME) @Target({FIELD,TYPE,METHOD,PARAMETER}) public @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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    AnnotationLiteral for programmatic CDI lookups.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The tenant identifier.
  • Element Details

    • value

      String value
      The tenant identifier.
      Returns:
      the tenant identifier