// Initialize every entry cache configured.
for (String cacheName : rootConfiguration.listEntryCaches())
{
// Get the entry cache configuration.
EntryCacheCfg configuration = rootConfiguration.getEntryCache(cacheName);
// At this point, we have a configuration entry. Register a change
// listener with it so we can be notified of changes to it over time.
configuration.addChangeListener(this);
// Check if there is another entry cache installed at the same level.
if (!cacheOrderMap.isEmpty()) {
if (cacheOrderMap.containsKey(configuration.getCacheLevel())) {
// Log error and skip this cache.
logError(ERR_CONFIG_ENTRYCACHE_CONFIG_LEVEL_NOT_ACCEPTABLE.get(
String.valueOf(configuration.dn()),
configuration.getCacheLevel()));
continue;
}
}
// Initialize the entry cache.
if (configuration.isEnabled()) {
// Load the entry cache implementation class and install the entry
// cache with the server.
String className = configuration.getJavaClass();
try {
loadAndInstallEntryCache(className, configuration);
} catch (InitializationException ie) {
logError(ie.getMessageObject());
}