consistent specification of standard meta-annotations
This commit is contained in:
parent
00133179df
commit
1a2bbe5c4d
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.beans.factory.annotation;
|
package org.springframework.beans.factory.annotation;
|
||||||
|
|
||||||
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
|
@ -62,8 +63,9 @@ import java.lang.annotation.Target;
|
||||||
* @see Qualifier
|
* @see Qualifier
|
||||||
* @see Value
|
* @see Value
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD})
|
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD})
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Documented
|
||||||
public @interface Autowired {
|
public @interface Autowired {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 the original author or authors.
|
* Copyright 2002-2011 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.
|
||||||
|
|
@ -34,10 +34,10 @@ import java.lang.annotation.Target;
|
||||||
* @author Ramnivas Laddad
|
* @author Ramnivas Laddad
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Documented
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
|
@Documented
|
||||||
public @interface Configurable {
|
public @interface Configurable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ import java.lang.annotation.Target;
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
* @see Autowired
|
* @see Autowired
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
|
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Qualifier {
|
public @interface Qualifier {
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.beans.factory.annotation;
|
package org.springframework.beans.factory.annotation;
|
||||||
|
|
||||||
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
|
@ -32,23 +33,24 @@ import java.lang.annotation.Target;
|
||||||
* "#{systemProperties.myProp}" style expressions.
|
* "#{systemProperties.myProp}" style expressions.
|
||||||
*
|
*
|
||||||
* <p>Note that actual processing of the {@code @Value} annotation is performed
|
* <p>Note that actual processing of the {@code @Value} annotation is performed
|
||||||
* by a {@link org.springframework.beans.factory.config.BeanPostProcessor
|
* by a {@link org.springframework.beans.factory.config.BeanPostProcessor
|
||||||
* BeanPostProcessor} which in turn means that you <em>cannot</em> use
|
* BeanPostProcessor} which in turn means that you <em>cannot</em> use
|
||||||
* {@code @Value} within
|
* {@code @Value} within
|
||||||
* {@link org.springframework.beans.factory.config.BeanPostProcessor
|
* {@link org.springframework.beans.factory.config.BeanPostProcessor
|
||||||
* BeanPostProcessor} or {@link BeanFactoryPostProcessor} types. Please
|
* BeanPostProcessor} or {@link BeanFactoryPostProcessor} types. Please
|
||||||
* consult the javadoc for the {@link AutowiredAnnotationBeanPostProcessor}
|
* consult the javadoc for the {@link AutowiredAnnotationBeanPostProcessor}
|
||||||
* class (which, by default, checks for the presence of this annotation).
|
* class (which, by default, checks for the presence of this annotation).
|
||||||
*
|
*
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
* @see AutowiredAnnotationBeanPostProcessor
|
* @see AutowiredAnnotationBeanPostProcessor
|
||||||
* @see Autowired
|
* @see Autowired
|
||||||
* @see org.springframework.beans.factory.config.BeanExpressionResolver
|
* @see org.springframework.beans.factory.config.BeanExpressionResolver
|
||||||
* @see org.springframework.beans.factory.support.AutowireCandidateResolver#getSuggestedValue
|
* @see org.springframework.beans.factory.support.AutowireCandidateResolver#getSuggestedValue
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
|
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Documented
|
||||||
public @interface Value {
|
public @interface Value {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue