@Scope is now allowed on methods (for use in conjunction with @Bean)
This commit is contained in:
parent
100ba6599f
commit
9735c8024c
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 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.
|
||||||
|
|
@ -31,9 +31,10 @@ import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
* '<code>singleton</code>', '<code>prototype</code>', and so forth.
|
* '<code>singleton</code>', '<code>prototype</code>', and so forth.
|
||||||
*
|
*
|
||||||
* @author Mark Fisher
|
* @author Mark Fisher
|
||||||
|
* @author Chris Beams
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
*/
|
*/
|
||||||
@Target(ElementType.TYPE)
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Scope {
|
public @interface Scope {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue