From f739c3fde1cc97e10dc160bf7fb0b39899b27a1f Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 21 Jul 2009 15:22:58 +0000 Subject: [PATCH] resort to using @Bean directly --- .../context/annotation/configuration/ScopingTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java b/org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java index 3094e2553e2..bd5e9695b80 100644 --- a/org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java +++ b/org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java @@ -320,6 +320,7 @@ public class ScopingTests { return tb; } + @Bean @MyProxiedScope public ITestBean scopedProxyInterface() { TestBean tb = new TestBean(); @@ -327,6 +328,7 @@ public class ScopingTests { return tb; } + @Bean @MyProxiedScope public TestBean scopedProxyClass() { TestBean tb = new TestBean(); @@ -359,7 +361,6 @@ public class ScopingTests { @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) - @Bean @Scope(value=SCOPE, proxyMode=ScopedProxyMode.TARGET_CLASS) @interface MyProxiedScope { }