Browse Source

polishing

pull/1234/head
Juergen Hoeller 14 years ago
parent
commit
d78eda8aeb
  1. 8
      org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java
  2. 4
      org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
  3. 2
      org.springframework.context/src/main/resources/org/springframework/scheduling/config/spring-task-3.0.xsd

8
org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java

@ -118,11 +118,9 @@ class ConfigurationClassBeanDefinitionReader { @@ -118,11 +118,9 @@ class ConfigurationClassBeanDefinitionReader {
*/
private void loadBeanDefinitionsForConfigurationClass(ConfigurationClass configClass) {
doLoadBeanDefinitionForConfigurationClassIfNecessary(configClass);
for (ConfigurationClassMethod method : configClass.getMethods()) {
loadBeanDefinitionsForModelMethod(method);
}
loadBeanDefinitionsFromImportedResources(configClass.getImportedResources());
}
@ -139,7 +137,7 @@ class ConfigurationClassBeanDefinitionReader { @@ -139,7 +137,7 @@ class ConfigurationClassBeanDefinitionReader {
GenericBeanDefinition configBeanDef = new GenericBeanDefinition();
String className = configClass.getMetadata().getClassName();
configBeanDef.setBeanClassName(className);
if(checkConfigurationClassCandidate(configBeanDef, this.metadataReaderFactory)) {
if (checkConfigurationClassCandidate(configBeanDef, this.metadataReaderFactory)) {
String configBeanName = BeanDefinitionReaderUtils.registerWithGeneratedName(configBeanDef, this.registry);
configClass.setBeanName(configBeanName);
if (logger.isDebugEnabled()) {
@ -160,8 +158,8 @@ class ConfigurationClassBeanDefinitionReader { @@ -160,8 +158,8 @@ class ConfigurationClassBeanDefinitionReader {
}
/**
* Reads a particular {@link ConfigurationClassMethod}, registering bean definitions with
* the BeanDefinitionRegistry based on its contents.
* Reads a particular {@link ConfigurationClassMethod}, registering bean definitions
* with the BeanDefinitionRegistry based on its contents.
*/
private void loadBeanDefinitionsForModelMethod(ConfigurationClassMethod method) {
ConfigurationClass configClass = method.getConfigurationClass();

4
org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java

@ -139,8 +139,8 @@ class ConfigurationClassParser { @@ -139,8 +139,8 @@ class ConfigurationClassParser {
}
}
Set<MethodMetadata> beanMethods = metadata.getAnnotatedMethods(Bean.class.getName());
for (MethodMetadata methodMetadata : beanMethods) {
configClass.addMethod(new ConfigurationClassMethod(methodMetadata, configClass));
for (MethodMetadata beanMethod : beanMethods) {
configClass.addMethod(new ConfigurationClassMethod(beanMethod, configClass));
}
}

2
org.springframework.context/src/main/resources/org/springframework/scheduling/config/spring-task-3.0.xsd

@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
<xsd:documentation><![CDATA[
Specifies the java.util.Executor instance to use when invoking asynchronous methods.
If not provided, an instance of org.springframework.core.task.SimpleAsyncTaskExecutor
will be used by default
will be used by default.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>

Loading…
Cancel
Save