parentClassLoaders[iterator.previousIndex()] = configuration.childrenConfigurationClassLoader;
}
}
// we need to propagate the non-overrideable classes from parents
ClassLoadingRules classLoadingRules = environment.getClassLoadingRules();
ClassLoadingRule nonOverrideableRule = classLoadingRules.getNonOverrideableRule();
for (Configuration parent : classParents) {
Environment parentEnvironment = parent.getEnvironment();
ClassLoadingRules parentClassLoadingRules = parentEnvironment.getClassLoadingRules();
ClassLoadingRule parentNonOverrideableRule = parentClassLoadingRules.getNonOverrideableRule();
nonOverrideableRule.merge(parentNonOverrideableRule);
}
if (log.isDebugEnabled()) {
StringBuffer buf = new StringBuffer("ClassLoader structure for configuration ").append(id).append("\n");