in src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java [372:389]
private void scheduleReloadBundle(final JcrResourceBundle bundle) {
final Key key = new Key(bundle.getBaseName(), bundle.getLocale());
// defer this job
ScheduleOptions options = scheduler.AT(new Date(System.currentTimeMillis() + this.invalidationDelay));
final String jobName = "ResourceBundleProvider: reload bundle with key " + key.toString();
scheduledJobNames.add(jobName);
options.name(jobName);
scheduler.schedule(
new Runnable() {
@Override
public void run() {
reloadBundle(key);
scheduledJobNames.remove(jobName);
}
},
options);
}