-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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: support RepositoryChangeListener for SPI #3883
base: master
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
提供SPI扩展,以便具体项目通过此SPI中来实现敏感信息(如密码)的解密处理 SPI实现类配置文件位置:META-INF\services\com.ctrip.framework.apollo.internals.RepositoryChangeListener I have read the CLA Document and I hereby sign the CLA
RepositoryChangeListener 应该没法实现这个需求吧,可行的方式可以参考 com.ctrip.framework.apollo.config.data.internals.PureApolloConfigFactory,通过 ApolloInjectorCustomizer 来自定义一个 Config 类实现出来 |
经过此PR, 是可能实现对apollo中获取配置项进行解码处理再交由程序来处理。 API应提供扩展点以便具体项目进行个性化改造(而不用修改源码) 以下是切入点调用链供参考
//更变时的切入点:
|
@qxo 通过 onRepositoryChange 应该无法实现诸如 |
这样啊,新增一个spi也行, 请项目主管理方决策:) |
我加了 discussion 标签,开放一段时间看看大家的想法吧~ |
提供SPI扩展,以便具体项目通过此SPI中来实现敏感信息(如密码)的解密处理
SPI实现类配置文件位置:META-INF\services\com.ctrip.framework.apollo.internals.RepositoryChangeListener
What's the purpose of this PR
XXXXX
Which issue(s) this PR fixes:
Fixes #
Brief changelog
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.