talios/halbuilder — pull request #22 by jcassee (2012-04-20 16:48:04+00:00)
Title: Make ResourceFactory.readResource pluggable

Instead of trying to extend the existing JSON reader to implement issue #21, I elected to make the reader pluggable. This makes it possible to experiment with different renderers and readers.

I kept the original selector on the first character of the stream because it keeps the extension simple.

Usage:

```java
resourceFactory.withReader('{', MyJsonResourceReader.class);
```

I added tests but no documentation, in order to conform to existing practices. ;-) Seriously, I would add some docs if there was some skeleton available.