Friday, February 20, 2009

What is Spring ?

Spring is an open source framework. Spring makes plain java object capable of achieving tasks which were limited to EJB objects only.

So Why Spring and what it is Really ??

1. Spring is a lightweight. It is ~2.5 MB in size with very little overhead in processing.
2. Dependancy Injection (DI) - I am sure you heard about this. So what is DI ?? DI can be think of opposite of JNDI i.e. instead of looking up dependencies from a container, the container gives the dependencies at instantiation without being asked [read more about this in my next post].
3. Aspect-Oriented - Business logic clearly separates from the system services like logging or security etc. In short your custom object know nothing about system services. You will be able to declare them and wrap around your code separately [read more about this in my next post].
4. Container - Spring is a container in a sense that it contains and manage the life cycle and configuration of the application objects.
5. Framework - It is a framework or collection of framework [read more about this in my next post].

This brings us the end of the first post. I will write in the second post soon.

NOTE 1: DI and AOP are the core capabilities of the Spring. You will need to know everything Spring can do with DI and AOP to tap full capability of the Spring.