Automate the registration of Provenance protobuf module descriptors in RestConfig.kt by dynamically loading them, focusing on io.provenance.* packages.
Problem Definition
Currently, Provenance protobuf module descriptors are manually listed in RestConfig.kt, which is not scalable or maintainable with the frequent addition and updating of Protobuf definitions. This manual process is prone to errors and omissions, requiring constant updates.
Benefits of including this feature:
Reduces the risk of missing updates when new Protobuf types are added, enhancing maintainability.
Automatically adapts to changes, improving the scalability of the configuration management process.
Proposal
Implement dynamic loading of Protobuf descriptors using the Reflections library, specifically targeting io.provenance.* packages within RestConfig.kt. This approach will eliminate the need for manually listing Protobuf descriptors, thus simplifying the configuration process. The implementation will involve:
Integrating the Reflections library for dynamic classpath scanning.
Defining a method in RestConfig.kt to dynamically discover and register Provenance protobuf descriptors.
Summary
Automate the registration of Provenance protobuf module descriptors in
RestConfig.kt
by dynamically loading them, focusing onio.provenance.*
packages.Problem Definition
Currently, Provenance protobuf module descriptors are manually listed in
RestConfig.kt
, which is not scalable or maintainable with the frequent addition and updating of Protobuf definitions. This manual process is prone to errors and omissions, requiring constant updates.Benefits of including this feature:
Proposal
Implement dynamic loading of Protobuf descriptors using the
Reflections
library, specifically targetingio.provenance.*
packages withinRestConfig.kt
. This approach will eliminate the need for manually listing Protobuf descriptors, thus simplifying the configuration process. The implementation will involve:Reflections
library for dynamic classpath scanning.RestConfig.kt
to dynamically discover and register Provenance protobuf descriptors.For Admin Use