Spring is a container of beans, it behave as a factory of
beans, like
-
Tomcat is a servlet container
-
Tomcat creates servlet objects which are
required to run an application.
Spring has as many numbers of objects you want and all these
are managed by spring container
Mange in the sense, it handles instantiation of the objects,
whole life cycle of the object and it handles destruction of those objects.
You can have objects outside the spring container, but adding
the objects inside the spring container gives lot of advantages.
No comments:
Post a Comment