Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring core container is the basis for complete Spring framework?

 
scott miles
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All websites states that Spring core container is the basis for complete Spring framework i.e it is used across
the all modules like AOP,JDBC module,Web module etc.
As per my understading Spring core container main purpose is
to inject dependency which avoid the need of factory classes and methods. Is that correct?

Second question is when it is said, Spring core container is the basis for complete Spring framework .Say we take the
example of Spring AOP. As per understanding In Spring AOP , Getting the object of classes like
ProxyFactoryBean is achieved by core container. Right?

Thirdly, it is stated that Spring core container avoid the need of programming the singleton. How come singleton
classes are avoided by core container?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the whole configuration and dependency is the base/skeleton/foundation for everything that Spring can do. Without Spring knowing about your classes, instantiating your classes, setting up the dependencies, then Spring wouldn't be able to add cool functionality to your application.

I am not sure what your understanding is based on your questions. Basically, I am not sure what you mean.

In terms of Singleton, there is the design pattern and there is scope. In Spring terms the Singleton scope, which is the default, means that Spring will only instantiate one instance of your object. And make sure it does not create another instance. The Singleton design pattern is different. It has the same basic results in terms of only one instance created. But in the Singleton design pattern, the class has code/functionality to enforce the single instance.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic