Package org.a2aproject.sdk.server.config
Interface A2AConfigProvider
- All Known Implementing Classes:
DefaultValuesConfigProvider,MicroProfileConfigProvider
public interface A2AConfigProvider
Configuration provider interface for A2A SDK configuration values.
Implementations can obtain configuration from various sources:
DefaultValuesConfigProvider- Loads from META-INF/a2a-defaults.properties on classpath- MicroProfileConfigProvider - Delegates to MicroProfile Config (reference implementations)
- Custom implementations - Can integrate with any configuration system
All configuration values are returned as strings. Consumers are responsible for type conversion.
-
Method Summary
-
Method Details
-
getValue
Get a required configuration value.- Parameters:
name- the configuration property name- Returns:
- the configuration value
- Throws:
IllegalArgumentException- if the configuration value is not found
-
getOptionalValue
Get an optional configuration value.- Parameters:
name- the configuration property name- Returns:
- an Optional containing the value if present, empty otherwise
-