Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:A2aproject A2a java MicroProfileConfigProvider

From Leeroopedia
Knowledge Sources
Domains Integrations, Configuration
Last Updated 2026-10-30 00:00 GMT

Overview

Concrete integration implementation that bridges the A2A SDK's A2AConfigProvider SPI with Eclipse MicroProfile Config for Quarkus and other MicroProfile-compatible runtimes.

Description

The MicroProfileConfigProvider implements the A2AConfigProvider SPI by delegating to ConfigProvider.getConfig() from MicroProfile Config. This enables runtime-externalized configuration via standard MicroProfile Config sources (system properties, environment variables, `microprofile-config.properties`).

Usage

  • Quarkus deployment: Automatically registered when the `a2a-java-sdk-integrations-microprofile-config` module is on the classpath
  • Configuration override: System properties or environment variables override classpath defaults from DefaultValuesConfigProvider

Code Reference

Source Location

  • Repository: a2a-java
  • File: `integrations/microprofile-config/src/main/java/org/a2aproject/sdk/integrations/microprofile/MicroProfileConfigProvider.java`
  • Lines: L1-78

Signature

public class MicroProfileConfigProvider implements A2AConfigProvider {
    @Override
    public String getValue(String name);
    @Override
    public Optional<String> getOptionalValue(String name);
}

Import

import org.a2aproject.sdk.integrations.microprofile.MicroProfileConfigProvider;

I/O Contract

Inputs

Name Type Required Description
name String Yes Configuration property name

Outputs

Name Type Description
getValue returns String Configuration value from MicroProfile Config
getOptionalValue returns Optional<String> Value or empty

Usage Examples

application.properties (Quarkus)

# Override A2A executor pool sizes
a2a.executor.core-pool-size=10
a2a.executor.max-pool-size=100

# Agent card cache
a2a.agent-card.cache.max-age=7200

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment