public void setDefaultLookups(Collection<? extends Lookup> lookups)
{
boolean success;
do
{
ConfigurationInterpolator ciOld = getInterpolator();
ConfigurationInterpolator ciNew =
(ciOld != null) ? ciOld : new ConfigurationInterpolator();
Lookup confLookup = findConfigurationLookup(ciNew);
if (confLookup == null)
{
confLookup = new ConfigurationLookup(this);
}
else
{
ciNew.removeDefaultLookup(confLookup);
}
ciNew.addDefaultLookups(lookups);
ciNew.addDefaultLookup(confLookup);
success = interpolator.compareAndSet(ciOld, ciNew);
} while (!success);
}