Spring
-
Enterprise Java
Spring 3.1 Caching and @CacheEvict
My last blog demonstrated the application of Spring 3.1’s @Cacheable annotation that’s used to mark methods whose return values will be stored…
Read More » -
Enterprise Java
Spring 3.1 Caching and @Cacheable
Caches have been around in the software world for long time. They’re one of those really useful things that once…
Read More » -
Enterprise Java
Wire object dependencies outside a Spring Container
There are a few interesting ways of setting the properties and dependencies of an object instantiated outside of a Spring…
Read More » -
Enterprise Java
Spring Profiles and Java Configuration
My last blog introduced Spring 3.1’s profiles and explained both the business case for using them and demonstrated their use…
Read More » -
Enterprise Java
Spring Scoped Proxy
Consider two Spring beans defined this way: @Component class SingletonScopedBean{ @Autowired private PrototypeScopedBean prototypeScopedBean; public String getState(){ return this.prototypeScopedBean.getState(); }…
Read More » -
Enterprise Java
Observer Pattern with Spring Events
INTRODUCTION The essence of the Observer Pattern is to ‘Define a one-to-many dependency between objects so that when one object…
Read More » -
Enterprise Java
Customizing Spring Data JPA Repository
Spring Data is a very convenient library. However, as the project as quite new, it is not well featured. By…
Read More » -
Enterprise Java
Maven Web Project Kickstarter Codebase with Spring, Hibernate, Akka, Twitter Bootstrap, Apache Tiles and jQuery
I am happy to upload my second project to GitHub to help people get started with Java Web App Development…
Read More » -
Enterprise Java
Hibernate native SQL features into your Spring Data Repository
JPA provides @NamedNativeQuery for you to use native SQL. However, the usage is not so convenient, especially when you need…
Read More »