@ -185,7 +185,7 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
@@ -185,7 +185,7 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
@ -58,7 +58,7 @@ public class ArgumentPreparedStatementSetter implements PreparedStatementSetter,
@@ -58,7 +58,7 @@ public class ArgumentPreparedStatementSetter implements PreparedStatementSetter,
@ -92,7 +92,7 @@ public class ArgumentTypePreparedStatementSetter implements PreparedStatementSet
@@ -92,7 +92,7 @@ public class ArgumentTypePreparedStatementSetter implements PreparedStatementSet
@ -86,16 +87,13 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -86,16 +87,13 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@ -111,10 +109,10 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -111,10 +109,10 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@ -152,9 +150,9 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -152,9 +150,9 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
()->String.format("Cannot process locations AND classes for context configuration %s: "+
"configure one or the other, but not both.",configAttributes));
// If the original locations or classes were not empty, there's no
// need to bother with default detection checks; just let the
@ -188,8 +186,7 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -188,8 +186,7 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
if(configAttributes.hasClasses()){
if(logger.isInfoEnabled()){
logger.info(String.format(
"%s detected default configuration classes for context configuration %s.",
logger.info(String.format("%s detected default configuration classes for context configuration %s.",
@ -199,12 +196,12 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -199,12 +196,12 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
"Configuration error: both default locations AND default configuration classes "
+"were detected for context configuration %s; configure one or the other, but not both.",
Stringmsg=String.format(
"Configuration error: both default locations AND default configuration classes "+
"were detected for context configuration %s; configure one or the other, but not both.",
configAttributes);
logger.error(message);
thrownewIllegalStateException(message);
logger.error(msg);
thrownewIllegalStateException(msg);
}
}
}
@ -235,8 +232,8 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -235,8 +232,8 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
"Neither %s nor %s supports loading an ApplicationContext from %s: "
+"declare either 'locations' or 'classes' but not both.",name(getXmlLoader()),
"Neither %s nor %s supports loading an ApplicationContext from %s: "+
"declare either 'locations' or 'classes' but not both.",name(getXmlLoader()),
name(getAnnotationConfigLoader()),mergedConfig));
for(SmartContextLoaderloader:candidates){
@ -260,30 +257,37 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@@ -260,30 +257,37 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte
@ -58,11 +58,10 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -58,11 +58,10 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -71,7 +70,6 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -71,7 +70,6 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -84,14 +82,13 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -84,14 +82,13 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -101,16 +98,16 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -101,16 +98,16 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -123,9 +120,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -123,9 +120,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -138,9 +134,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -138,9 +134,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -148,7 +143,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -148,7 +143,8 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
"AnnotationConfigContextLoader does not support the getResourceSuffix() method");
@ -159,10 +155,10 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -159,10 +155,10 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -171,18 +167,14 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -171,18 +167,14 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -199,10 +191,9 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -199,10 +191,9 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@ -39,7 +39,6 @@ public class GenericGroovyXmlContextLoader extends GenericXmlContextLoader {
@@ -39,7 +39,6 @@ public class GenericGroovyXmlContextLoader extends GenericXmlContextLoader {
@ -63,7 +62,7 @@ public class GenericGroovyXmlContextLoader extends GenericXmlContextLoader {
@@ -63,7 +62,7 @@ public class GenericGroovyXmlContextLoader extends GenericXmlContextLoader {
@ -63,14 +63,12 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -63,14 +63,12 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -97,16 +95,15 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -97,16 +95,15 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -150,20 +147,15 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -150,20 +147,15 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -178,24 +170,20 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -178,24 +170,20 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -203,7 +191,7 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -203,7 +191,7 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -219,10 +207,8 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -219,10 +207,8 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -232,52 +218,50 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@@ -232,52 +218,50 @@ public abstract class AbstractGenericWebContextLoader extends AbstractContextLoa
@ -59,11 +59,10 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -59,11 +59,10 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -72,7 +71,6 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -72,7 +71,6 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -87,29 +85,26 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -87,29 +85,26 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -122,9 +117,8 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -122,9 +117,8 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -137,9 +131,8 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -137,9 +131,8 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -147,24 +140,23 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -147,24 +140,23 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
"AnnotationConfigWebContextLoader does not support the getResourceSuffix() method");
@ -181,9 +173,9 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@@ -181,9 +173,9 @@ public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextL
@ -38,7 +38,6 @@ public class GenericGroovyXmlWebContextLoader extends GenericXmlWebContextLoader
@@ -38,7 +38,6 @@ public class GenericGroovyXmlWebContextLoader extends GenericXmlWebContextLoader
@ -63,7 +62,7 @@ public class GenericGroovyXmlWebContextLoader extends GenericXmlWebContextLoader
@@ -63,7 +62,7 @@ public class GenericGroovyXmlWebContextLoader extends GenericXmlWebContextLoader
@ -292,19 +292,17 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
@@ -292,19 +292,17 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
@ -142,9 +142,8 @@ public class RedirectView extends AbstractUrlBasedView {
@@ -142,9 +142,8 @@ public class RedirectView extends AbstractUrlBasedView {