How can I store external numeric configurations?

Currently, I have the following configuration provided configuration that I use to store both secrets and non-secrets externally :


And I am currently using it to do the following :


While this works well for string values, this does not seem to work well when there are numbers as it produces a class cast exception at runtime when the types are not matched.

As far as I understand, ConfigData needs to return a Map<String,String> and that limits my options

Java Properties files don’t have defined value types, thus cannot be inferred to anything but string at runtime

1 Like

Is there any ConfigData flavor that is typed?

Kafka is open source, so you’re welcome to double check, but there is not

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.