Professional Documents
Culture Documents
Spring Notes Vijay
Spring Notes Vijay
Spring Notes Vijay
framework.
Light Weight:
1) The bulk of the Spring Framework can be distributed in a single JAR file that
weighs in at just over 2.5 MB.
2) The processing overhead required by Spring is negligible.
3) Objects in a Spring-enabled application often have no dependencies on
Spring-specific classes.
Dependency Injection:
1) Spring promotes loose coupling through a technique known as Dependency
Injection.
2) Objects are passively given their dependencies instead of creating or looking
for dependent objects for themselves.
Container:
1) Spring acts as a container which contains and manages the lifecycle and
configuration of application objects. (how to declare , configure application
objects and how different application objects are associated together)
Frame Work:
1) Using spring it is possible to compose and configure complex components
using simple components
2) In Spring application objects are composed declaratively in xml file.
package com.springinaction.chapter01.knight;
package com.springinaction.chapter01.knight;
package com.springinaction.chapter01.knight;
public interface Quest {
abstract Object embark() throws QuestFailedException;
}
package com.springinaction.chapter01.knight;