[
https://issues.apache.org/jira/browse/DIRKRB-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15070710#comment-15070710
]
Kai Zheng commented on DIRKRB-511:
----------------------------------
With this change there would be no good place to call the following. I guess we
would not need {{propNames}} now in {{ConfigImpl}} since configuration items
are loaded immediately once the resource is added.
{code}
private void reloadNames() {
if (propNames != null) {
propNames.clear();
}
propNames = new HashSet<String>(properties.keySet());
for (Config config : configs) {
propNames.addAll(config.getNames());
}
}
{code}
> Load configuration content when adding the resource
> ---------------------------------------------------
>
> Key: DIRKRB-511
> URL: https://issues.apache.org/jira/browse/DIRKRB-511
> Project: Directory Kerberos
> Issue Type: Improvement
> Affects Versions: 1.0.0-RC2
> Reporter: YanYan
> Assignee: YanYan
> Attachments: DIRKRB-511-v1.patch
>
>
> Currently when loading Config resources, we only load in the resource name,
> and actually load in the content at the time we first launch a query, etc,
> getDefaultRealm().
> In order to reduce errors when loading contents and discover errors as soon
> as possible, we will load the resource name and contents in one step.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)