We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在通过 ConfigProvider 对类进行初始化时,支持初始化某个类的对象中的内容。
针对需要通过 get() 获取的配置文件,可以更直观的进行操作,如
get()
Main.getGameConfig().WINNER.SCORE.VALUE.get();
而其中的 WINNER 可以为一个单独的类,并在 GameConfiguration 类中通过 ConfigurationRoot WINNER = new WinnerConfig(...); 的方式注册。随后,即可通过链式补全得到需要的配置文件。
WINNER
ConfigurationRoot WINNER = new WinnerConfig(...);
The text was updated successfully, but these errors were encountered:
feat(init): 支持针对于实体类的初始化 #9
35398ab
01e20df
8eefba5
CarmJos
No branches or pull requests
功能简述
在通过 ConfigProvider 对类进行初始化时,支持初始化某个类的对象中的内容。
需求来源
针对需要通过
get()
获取的配置文件,可以更直观的进行操作,如而其中的
WINNER
可以为一个单独的类,并在 GameConfiguration 类中通过ConfigurationRoot WINNER = new WinnerConfig(...);
的方式注册。随后,即可通过链式补全得到需要的配置文件。The text was updated successfully, but these errors were encountered: