resort to using @Bean directly

This commit is contained in:
Juergen Hoeller 2009-07-21 15:22:58 +00:00
parent 3462b43bb1
commit f739c3fde1
1 changed files with 2 additions and 1 deletions

View File

@ -320,6 +320,7 @@ public class ScopingTests {
return tb; return tb;
} }
@Bean
@MyProxiedScope @MyProxiedScope
public ITestBean scopedProxyInterface() { public ITestBean scopedProxyInterface() {
TestBean tb = new TestBean(); TestBean tb = new TestBean();
@ -327,6 +328,7 @@ public class ScopingTests {
return tb; return tb;
} }
@Bean
@MyProxiedScope @MyProxiedScope
public TestBean scopedProxyClass() { public TestBean scopedProxyClass() {
TestBean tb = new TestBean(); TestBean tb = new TestBean();
@ -359,7 +361,6 @@ public class ScopingTests {
@Target({ElementType.METHOD}) @Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Bean
@Scope(value=SCOPE, proxyMode=ScopedProxyMode.TARGET_CLASS) @Scope(value=SCOPE, proxyMode=ScopedProxyMode.TARGET_CLASS)
@interface MyProxiedScope { @interface MyProxiedScope {
} }