Tuesday, January 31, 2012

Spring 3.1 Cache Abstraction

Declarative Annotation based caching
  • @Cacheable - This is the new & important annotation that allows methods to cache the fetched data.
  • For each time when the method is triggered cache will check for the specific data.
  • Spring 3.1 caching strategy allows users to cache data based on certain conditions also called as 'Conditional caching'.
  • @CacheEvict annotation is very much useful to clear the unused data from the cache buffer.
  • Finally spring annotations cannot enable themselves automatically we have to enable it explicitly, similarly for caching also we have to enable the caching annotations by providing the following tag in our configuration file.

Sunday, January 22, 2012

Spring AOP

Aspect Oriented Programming (AOP) allows developers to think programming structure in another way. Here in my post i don't want to tell you what is the theory behind AOP, just i want to show you how easy to create aspects using spring framework.





Hope this demo helped you to understand how easy to create aspects using Spring AOP.

Friday, January 20, 2012

Why i like Spring Roo!

Spring Roo - Next generation java application generator, possible for high quality and productivity of enterprise java applications.

From Roo 1.0 the contributions of Spring Source increased very significantly so that it supported lot of technologies.

The major advantage i found in Spring Roo 1.2.1 is cloud deployment. You can easily deploy your web application into cloud foundry. It is so easy to deploy into cloud - install cloud foundry add -on, logging in into cloud and then upload your web application that's it!.