Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE apache#2576] Enhanced Configuration management (apache#2917)
* [ISSUE apache#2576]Enhancement the config manage for project * [1] test code * EventMeshServer config improve * Extract the key prefix of the @configFiled field into @config * Improve configuration management of SPI implementations [1] config improve of RocketMQProducerImpl and RocketMQConsumerImpl [2] config UT of RocketMQProducerImpl and RocketMQConsumerImpl * Improve configuration management of SPI implementations [1] extensionInstance config init process improve [2] RocketMQProducerImpl and RocketMQConsumerImpl config UT improve * Improve configuration management of Kafka SPI Impl [1] KafkaConsumerImpl and KafkaProducerImpl config improve [2] KafkaConsumerImpl and KafkaProducerImpl config UT * Improve configuration management of Redis SPI Impl [1] RedisProperties config improve * Improve configuration management of Redis SPI Impl [1] RedisProperties config and UT improve [2] New parser ConvertProperties [3] To fix a bug where parser convertEnum could not parse null values * Fix config UT of Redis SPI Impl * Tweak Convert's code framework, for ease of enhancement (apache#2784) [1] Split the converter classes in Convert into separate files [2] Add the converter field to ConfigFiled, used to specify the converter class of the field * Improve configuration management of Knative SPI Impl (apache#2791) [1] KnativeConsumerImpl and KnativeProducerImpl config improve [2] KnativeConsumerImpl and KnativeProducerImpl config UT * Improve configuration management of Pravega SPI Impl [1] PravegaConsumerImpl and PravegaProducerImpl config improve [2] PravegaConsumerImpl and PravegaProducerImpl config UT [3] add new converter URIConverter * Improve configuration management of Pulsar SPI Impl [1] PulsarConsumerImpl and PulsarProducerImpl config improve [2] PulsarConsumerImpl and PulsarProducerImpl config UT * Improve configuration management of Rabbitmq SPI Impl [1] RabbitmqConsumer and RabbitmqProducer config improve [2] RabbitmqConsumer and RabbitmqProducer config UT * Improve configuration management of Prometheus SPI Impl [1] PrometheusMetricsRegistry config improve [2] PrometheusMetricsRegistry config UT * Improve configuration management of AuthHttpBasic SPI Impl [1] AuthHttpBasicService config improve [2] AuthHttpBasicService config UT * Enhance configuration management capabilities - @configFiled [1] Add two properties to @configFiled,findEnv / notNull, and the configuration file parsing capabilities that go with them [2] Delete @NotNull and replace it with @ConfigFiled.notNull * Improve configuration management of Pinpoint SPI Impl [1] PinpointTraceService config improve [2] PinpointTraceService config UT * Improve configuration management of Zipkin SPI Impl [1] ZipkinTraceService config improve [2] ZipkinTraceService config UT * Add repeatable functionality to @config For tagging multiple configuration fields on a class * Improve configuration management of TracePlugin [1] ExporterConfiguration config improve [2] ExporterConfiguration config UT * Improve configuration management of WebHook [1] WebHook config improve [2] WebHook config UT * Add field beNumber for @configFiled [1] If String config field not a number, an exception is thrown * Change the configuration management class CommonConfiguration to a new framework [1] Replace the CommonConfiguration field modifier public with private [2] Use getter/setter methods to access it * Change CommonConfiguration subclass to new framework [1] EventMeshHTTPConfiguration/EventMeshGrpcConfiguration/EventMeshTCPConfiguration * Change CommonConfiguration and subclass to new framework [1] EventMeshHTTPConfiguration/EventMeshGrpcConfiguration/EventMeshTCPConfiguration * Add field notEmpty for @configFiled [1] If it cannot be empty but is empty, an exception is thrown * Change the SPI RocketMQ config to new framework * Change the SPI kafka config to new framework * Change the SPI Redis config to new framework * Change the SPI knative config to new framework * Change the SPI pravega config to new framework * Change the SPI pulsar config to new framework * Change the SPI rabbitmq config to new framework * Change the SPI Prometheus config to new framework * Change the SPI auth-http-basic config to new framework * Change the SPI trace-api config to new framework * Change the SPI pinpoint config to new framework * Change the SPI zipkin config to new framework * Use getter/setter methods to access EventMeshGrpcConfiguration * Use getter/setter methods to access EventMeshHTTPConfiguration * Enhanced Configuration management * remove temporary blocking @ignore * fix styleCheck * fix UT * rename ConfigService method * Revision review comments * Fixed code review comments [1] save the last accessible status of reflection field and recovery it after custom operation * Fixed code review comments [1] CLASS_PATH_PREFIX/FILE_PATH_PREFIX constants optimization [2] Some other code details optimization * Fixed code review comments [1] add UT for ConfigService#getConfig(ConfigInfo configInfo) Co-authored-by: githublaohu <2372554140@qq.com> Co-authored-by: mike_xwm <mike_xwm@126.com>
- Loading branch information