@ -138,16 +138,16 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -138,16 +138,16 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -60,38 +59,30 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -60,38 +59,30 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
+"generated defaults for context configuration [%s].",loader,configAttributes));
}
@ -100,7 +91,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -100,7 +91,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
// If any loader claims to generate defaults but none actually did,
thrownewIllegalStateException(String.format("None of the SmartContextLoader candidates %s "
+"was able to generate defaults for context configuration [%s].",candidates,configAttributes));
}
@ -128,10 +119,8 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -128,10 +119,8 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
Assert.notNull(mergedConfig,"mergedConfig must not be null");
for(SmartContextLoaderloader:candidates){
// Ask each loader if it can load a context from the mergedConfig.
// If a loader can, let it; otherwise, continue iterating over all
// remaining candidates.
// If it can, let it; otherwise, keep iterating.
if(loader.supports(mergedConfig)){
if(logger.isDebugEnabled()){
logger.debug(String.format("Delegating to %s to load context from [%s].",