resort to using @Bean directly
This commit is contained in:
parent
3462b43bb1
commit
f739c3fde1
|
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue