Browse Source

polishing

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@606 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
ed42fb056e
  1. 9
      org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
  2. 4
      org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java

9
org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -120,12 +120,13 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
/** /**
* Set the 'autowired' annotation type, to be used on constructors, fields, * Set the 'autowired' annotation types, to be used on constructors, fields,
* setter methods and arbitrary config methods. * setter methods and arbitrary config methods.
* <p>The default autowired annotation type is the Spring-provided * <p>The default autowired annotation type is the Spring-provided
* {@link Autowired} annotation. * {@link Autowired} annotation, as well as {@link Value} and raw
* use of the {@link Qualifier} annotation.
* <p>This setter property exists so that developers can provide their own * <p>This setter property exists so that developers can provide their own
* (non-Spring-specific) annotation type to indicate that a member is * (non-Spring-specific) annotation types to indicate that a member is
* supposed to be autowired. * supposed to be autowired.
*/ */
public void setAutowiredAnnotationTypes(Class<? extends Annotation>[] autowiredAnnotationTypes) { public void setAutowiredAnnotationTypes(Class<? extends Annotation>[] autowiredAnnotationTypes) {

4
org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -77,7 +77,7 @@ public class InitDestroyAnnotationBeanPostProcessor
private Class<? extends Annotation> destroyAnnotationType; private Class<? extends Annotation> destroyAnnotationType;
private int order = Ordered.LOWEST_PRECEDENCE - 1; private int order = Ordered.LOWEST_PRECEDENCE;
private transient final Map<Class<?>, LifecycleMetadata> lifecycleMetadataCache = private transient final Map<Class<?>, LifecycleMetadata> lifecycleMetadataCache =
new ConcurrentHashMap<Class<?>, LifecycleMetadata>(); new ConcurrentHashMap<Class<?>, LifecycleMetadata>();

Loading…
Cancel
Save