cacheSource = this.cacheSource;
} else if (VariableResolverFactory.needsResolve(cacheParm)) {
cacheSource = null;
if (cacheSource == null) {
try {
VariableResolver varResolver = VariableResolverFactory.getResolver(cacheParm, this.manager);
cacheSource = Boolean.valueOf(varResolver.resolve(objectModel));
} catch (PatternException pe) {
throw new ConfigurationException("Unable to resolve " + cacheParm, pe);
}
}
} else {
cacheSource = Boolean.valueOf(cacheParm);
}
if (reloadParm == null) {
reloadSource = this.reloadSource;
} else if (VariableResolverFactory.needsResolve(reloadParm)) {
reloadSource = null;
} else {
reloadSource = Boolean.valueOf(reloadParm);
}
needsResolve = true;
}
if (cacheSource == null) {
try {
VariableResolver varResolver = VariableResolverFactory.getResolver(cacheParm, this.manager);
cacheSource = Boolean.valueOf(varResolver.resolve(objectModel));
} catch (PatternException pe) {
throw new ConfigurationException("Unable to resolve " + cacheParm, pe);
}
}
if (reloadSource == null) {
try {
VariableResolver varResolver =
VariableResolverFactory.getResolver(reloadParm, this.manager);
reloadSource = Boolean.valueOf(varResolver.resolve(objectModel));
} catch (PatternException pe) {
throw new ConfigurationException("Unable to resolve " + reloadParm, pe);
}
}
if (src == null) {
throw new ConfigurationException(
"No source specified"
+ (modeConf != null ? ", either dynamically in " + modeConf.getLocation() + ", or " : "")
+ " statically in "
+ staticConfLocation);
}
if (needsResolve) {
try {
VariableResolver varResolver = VariableResolverFactory.getResolver(src, this.manager);
src = varResolver.resolve(objectModel);
} catch (PatternException pe) {
throw new ConfigurationException("Error resolving variables for " + src, pe);
}
}