Browse Source

Polishing

pull/1274/merge
Juergen Hoeller 9 years ago
parent
commit
f51fe5fd39
  1. 3
      spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactory.java
  2. 10
      spring-context/src/main/java/org/springframework/context/support/GenericXmlApplicationContext.java

3
spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactory.java

@ -167,8 +167,7 @@ public abstract class AbstractAspectJAdvisorFactory implements AspectJAdvisorFac @@ -167,8 +167,7 @@ public abstract class AbstractAspectJAdvisorFactory implements AspectJAdvisorFac
private static final String[] EXPRESSION_PROPERTIES = new String[] {"value", "pointcut"};
private static Map<Class<?>, AspectJAnnotationType> annotationTypes =
new HashMap<>();
private static Map<Class<?>, AspectJAnnotationType> annotationTypes = new HashMap<>();
static {
annotationTypes.put(Pointcut.class,AspectJAnnotationType.AtPointcut);

10
spring-context/src/main/java/org/springframework/context/support/GenericXmlApplicationContext.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -29,7 +29,8 @@ import org.springframework.core.io.Resource; @@ -29,7 +29,8 @@ import org.springframework.core.io.Resource;
*
* <p>In case of multiple configuration files, bean definitions in later files
* will override those defined in earlier files. This can be leveraged to
* deliberately override certain bean definitions via an extra configuration file.
* intentionally override certain bean definitions via an extra configuration
* file appended to the list.
*
* @author Juergen Hoeller
* @author Chris Beams
@ -108,6 +109,11 @@ public class GenericXmlApplicationContext extends GenericApplicationContext { @@ -108,6 +109,11 @@ public class GenericXmlApplicationContext extends GenericApplicationContext {
this.reader.setEnvironment(getEnvironment());
}
//---------------------------------------------------------------------
// Convenient methods for loading XML bean definition files
//---------------------------------------------------------------------
/**
* Load bean definitions from the given XML resources.
* @param resources one or more resources to load from

Loading…
Cancel
Save