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.