Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(init): 支持针对于实体类的初始化 #9

Closed
CarmJos opened this issue Sep 12, 2022 · 0 comments
Closed

feat(init): 支持针对于实体类的初始化 #9

CarmJos opened this issue Sep 12, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@CarmJos
Copy link
Owner

CarmJos commented Sep 12, 2022

功能简述

在通过 ConfigProvider 对类进行初始化时,支持初始化某个类的对象中的内容。

需求来源

针对需要通过 get() 获取的配置文件,可以更直观的进行操作,如

Main.getGameConfig().WINNER.SCORE.VALUE.get();

而其中的 WINNER 可以为一个单独的类,并在 GameConfiguration 类中通过 ConfigurationRoot WINNER = new WinnerConfig(...); 的方式注册。随后,即可通过链式补全得到需要的配置文件。

@CarmJos CarmJos added the enhancement New feature or request label Sep 12, 2022
@CarmJos CarmJos self-assigned this Sep 12, 2022
@CarmJos CarmJos closed this as completed Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant