Mushtaq Jameel
Mushtaq Jameel

Reputation: 7083

BeanDefinition class removed in Spring 4?

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

Answers (1)

geoand
geoand

Reputation: 63991

It is not removed. You can find it in the org.springframework.beans.factory.config package which can in turn is in spring-beans.jar which can be found here

As @John points out, the corresponding Javadoc can be found here

Upvotes: 2

Related Questions