aspose file tools*
The moose likes Spring and the fly likes Spring core container is the basis for complete Spring framework? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring core container is the basis for complete Spring framework?" Watch "Spring core container is the basis for complete Spring framework?" New topic
Author

Spring core container is the basis for complete Spring framework?

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring core container is the basis for complete Spring framework?