commons

Common Java Cookbook PDF Now Available

A few people noticed that the PDF for Common Java Cookbook was removed from the site a few months ago, and I've been getting a steady stream of emails requesting access to these file. If you want to download the PDF for the Common Java Cookbook, sign up for an Account on this site, and go to the book download page. You can also signup for a mailing list if you are interested in updates. Happy reading.

Common Java Cookbook: 0.11: Updated Lang and App Infra Component Versions

Chapter 1 and Chapter 7: I updated the sections that tell you how to download the components and changed them to include the dependency XML for a pom.xml. (This is in line with my agenda to push traffic to Maven: The Definitive Guide... :-) )

Retrieving Typed Configuration with Commons Configuration

Tags:

Typed configuration is very straightfoward with Commons Configuration. One of my pet peeves is having to translate numeric configuration parameters from String instances to the corresponding primitive type. The following example loads configuration from the test.properties file:

commons-scxml and state machines

Tags:
Commons SCXML is a new component in the Commons Sandbox that intends to implement a state machine representation and execution framework as deifned in the State Chart XML (SCXML): State Machine Notation for Control Abstraction 1.0 Working Draft. As this component attempts to collect itself before promotion to Commons proper, anyone interested in this subject should take a look at this component.

Codec Soundex Bug Fix

Tags:

There was a trivial bug fixed in Commons Codec that affected the Soundex class. If you tried to use the static US_ENGLISH instance, you ran into problems. For example:

String code = Soundex.US_ENGLISH.soundex("Smith");

Was throwing a NPE because of the ordering of the static variables in the Soundex class. The problem was addressed by reordering the statics and adding a unit test donated by the person who identified this bug.

Credit to Reggie Riser for identifying this defect.

Syndicate content