Reputation: 7083
I am trying out the new Spring 4 release, and I found out that the BeanDefinition
interface has been removed, if so what is the replacement class we should use in a scenario where we define a scope for a bean ?
Prior to Spring release of 4 you could do this.
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
class MyBean{
...
}
EDIT
As of Spring 4, can't you specify the spring bean scope in the @Scope Annotation, the only option given is to add a string and then the ProxyMode ?
Upvotes: 1
Views: 673