Suggest providing an interface for the ConfigurationPropertiesRebinder class

Đang mở
#1,369 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, spring
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng cách đọc lớp ConfigurationPropertiesRebinder và phương thức rebind của nó, sau đó xem xét cách hiện tại nó triển khai ApplicationListener cho EnvironmentChangeEvent. Xác định interface hoặc lifecycle hook nào sẽ cho phép các bên gọi kích hoạt rebinding và thực hiện xử lý sau đó; issue được hoàn tất khi phần mở rộng được yêu cầu được hỗ trợ rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

waiting-for-triage

I want to implement a listener that, upon detecting a certain event, triggers the rebind method of the ConfigurationPropertiesRebinder class. After the rebind method completes its execution, I would like to perform some custom processing, such as publishing a custom event to inform other listeners that the configuration properties have been re-bound. This will allow the listeners to obtain the latest configuration properties and take appropriate actions.

Currently, ConfigurationPropertiesRebinder itself implements the ApplicationListener interface and listens for EnvironmentChangeEvent events, which prevents me from implementing the above functionality.

Therefore, would you consider providing the aforementioned functionality?
I look forward to your reply. Thank you.

Ngôn ngữ chính
Java
Star
751
Fork
767
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spring-cloud/spring-cloud-commons

Tất cả issue của spring-cloud/spring-cloud-commons

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.