@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");
|
||||
* 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.
|
||||
*
|
||||
* @author Mark Fisher
|
||||
* @author Chris Beams
|
||||
* @since 2.5
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Scope {
|
||||
|
|
|
|||
Loading…
Reference in New Issue