gears greasemonkey javadoc offline

Easy offline Javadoc

If like me you’re traveling often, and develop while doing so, you don’t want to waste time. Every laptop nowadays has a wifi interface: problem is finding the hotspot, not an easy task on a plane or on a train. Once, I used to download and save each and every Javadoc of Java, JEE and the various OpenSource frameworks I used (Struts, Hibernate, Spring, you get the idea). As bad luck would have it, 9 times out of 10, I hadn’t the correct version when I needed it. That was both

jdbc spring

Age of Spring

Since it first version, Spring has known success. How is it possible that such an unknown framework (at the time) has become so widespread that companies demand to attendants to have Spring knowledge? I think they are two main reasons for this. First, the use of Inversion of Control really helps unit testing your classes and since unit tests have become a hot topic, it is natural that a framework that promote independency between classes should win. But they are other IoC frameworks available.

open source opensource quality sonar

Manage the quality of your projects with Sonar

Sonar is a free OpenSource product that provides you with a general dashboard displaying information about the codebase of each configured project, such as: Number of failed tests,% of code coverage,% of rules compliance (more later),% of duplicated lines,and much more. Then you get an additional graphical information showing: a square for the size of your project’s codebase relative to the entire codebase’s size,a color (from red to green) for the % of rules compliance. Yet, w

batch shutdown hook

Gracefully stop your batches

In applications, one sometimes needs to run some processes before and after the application’s run. Whereas in an application server you have full access to the web application lifecycle through the javax.servlet.ServletContextListener interface, there is no such thing in a plain old Java application. Doing things before is easy enough since you have access to the application’s entry point in the form of the public void main(String[] args) method. But how do you things after? Where i

reflection

Java - The power of reflection

Ever heard of reflection? It’s a powerful Java technique that make it a possible for the JVM to manipulate objects the developer did not know about. There’s an entire API devoted to it: it is located under the java.lang.reflect package. For example, I once created a RPC web-services engine that could launch any methods of any class so long a the adequate class could be found on the classpath. It is not really hard to do. But the true power of reflection lies within its ability to

download eclispe ganymede

Ganymede is out

A quick one this week (hey, it’s summer, everyone is entitled to a little lazyness). After all the long waiting, Ganymede is out ! Apart from being one of Jupiter’s moons (like Callisto and Europa ), Ganymede is the latest release of the Eclipse IDE, namely version 3.4. Ganymede is available in several packages, one will suerly fits your needs. You can download them from here and then update the package from within Eclipse. Have fun!

dbunit derby javadb unit test

Speeding up your DBUnit tests with JavaDB

Introduction to DBUnit With the developed use of JUnit, many additions were made to it. These additions take advantage of the pluggable nature of JUnit. One of these contribution is DBUnit. DBUnit enables your unit tests to: preload the database with datas pertaining to your current test only,run your unit test (as usual),remove the data you preloaded in order to put the database in the same it was before your additions. In effect, you can now test your DAO classes. Let’s take a (very)