Browse Source

resort to using @Bean directly

pull/23217/head
Juergen Hoeller 17 years ago
parent
commit
f739c3fde1
  1. 3
      org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java

3
org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java

@ -320,6 +320,7 @@ public class ScopingTests { @@ -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 { @@ -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 { @@ -359,7 +361,6 @@ public class ScopingTests {
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Bean
@Scope(value=SCOPE, proxyMode=ScopedProxyMode.TARGET_CLASS)
@interface MyProxiedScope {
}

Loading…
Cancel
Save