BeanDefinition class removed in Spring 4?

Posted by mushtaq on Stack Overflow See other posts from Stack Overflow or by mushtaq
Published on 2014-06-06T12:18:02Z Indexed on 2014/06/08 9:25 UTC
Read the original article Hit count: 304

Filed under:
|
|

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 ?

© Stack Overflow or respective owner

Related posts about spring

Related posts about spring-mvc