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 [...]
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 [...]
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 [...]
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! [...]
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, [...]
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.
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 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 [...]