Browse Source

@Scope is now allowed on methods (for use in conjunction with @Bean)

pull/23217/head
Chris Beams 17 years ago
parent
commit
9735c8024c
  1. 5
      org.springframework.context/src/main/java/org/springframework/context/annotation/Scope.java

5
org.springframework.context/src/main/java/org/springframework/context/annotation/Scope.java

@ -1,5 +1,5 @@ @@ -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; @@ -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…
Cancel
Save