Archive for the 'Object Oriented and Design' Category

Object caching using Spring, Ehcache

Caching is quite important to boost the application performance. There are many cache libraries in Java world, both commercial and open source. You should choose the existing library instead creating your own library. I see some guys in my previous companies develop their own cache, and it is not good for their project. Instead of [...]

Integration of Jackrabbit OCM and Spring (updated version)

March 26 20097 Commented

Categorized Under: Engroup, Java, Object Oriented and Design, Technology, Testing

In the previous post Jackrabbit OCM and Spring, I have outlined the way of integrating between Jacckrabbit OCM (jackrabbit 1.5.0-snapshot) and Spring. The time flies help us have more JCR knowledge, jackrabbit api becomes more stable and our Engroup ECM implementation is changed. Instead of creating the total new JCR node types for our domain [...]

Template architecture for software rapid development – part 1

June 11 2007No Commented

Categorized Under: Object Oriented and Design, Software Development Process, Software Engineer

To inspire my two previous posts are ‘MVC pattern: Controller is too big’ and ‘Template projects in software development’., the current post is written base on my deeper thinking how to create the re-usable artifacts in a software company. More ideas are completed after my study on Software Product Line and Software Factories. I will [...]

MVC pattern: Controller is too big!

May 3 2007No Commented

Categorized Under: Java, Object Oriented and Design, Osgi, Software Engineer

All software engineers know the MVC pattern also it is applied in various projects from standalone to web or distributed application. However, while many Software Engineers have different view on Controller layer and many cases it is not managed well because the Controller layer must do many things and it is too big for maintenance! [...]

Validation with Bean Validation Framework

May 3 2007one Commented

Categorized Under: Java, Object Oriented and Design

Spring framework provide the nice approach of validation that separate with the main business with validation. There are 3 ways of validation supported by Spring framework, they are: Common Validator, Valang (Va-lidation Lang-uage) Validator and Bean Framework Validator. According to me, Bean Framework Validator is the best among these approaches because it is more flexible, [...]

OO design principles

January 19 2007No Commented

Categorized Under: Object Oriented and Design, Software Engineer

For any evaluation of architecture, the natural question is raised whether the architecture is good and the common criteria to assess this quality is not common for all reviewers.

Do we need to use Dependency injection pattern?

December 25 2006No Commented

Categorized Under: Java, Object Oriented and Design

Dependency injection pattern becomes popular recent years. But what is the root cause of this event and do you really need to use this pattern in your work? I know this pattern when my friend introduce me the Pico container and the article written by Martin Fowler (you can read it here). In the first [...]

Singleton, is it a false pattern ?

December 25 2006No Commented

Categorized Under: Object Oriented and Design, Software Engineer

Singleton is the first pattern I learned when I am a fresh programmer, it is impressed to me at that time due to it is easy to learn. Years by years, I have learned many variances of this pattern through how to apply lazy loading the static instance to the thread-safe of initializing the static [...]