bazaarvoice/jolt — pull request #40 by milosimpson (2013-07-26 20:56:04+00:00)
Title: fixes #39 Refactor Chainr to allow for a Guice Transform Loading

Three distinct top level things were done in this change.

1) The processing of the Chainr Spec file was pulled out of Chainr and into
a ChainrBuilder. Existing code can be easily updated by using new
static method on Chainr.fromSpec() which encapsulates usage of the
ChainrBuilder.
2) The code that instantiates Transform instances was extracted so that Jolt
clients can use Guice to load their Custom Java Transforms.
Additionally,
3) The Transform interface was modifed to take an additional / optional
"context". New test paradigm for validating Transforms that take "context"..

Minor Changes
- Change Chainr transform range to have exclusive "to".
- Got rid of crufty "java" / "classname" notion.
- New ChainrSpec/Entry "pojoy" objects used by new ChainrBuilder..
- Included and annotated "stock" SpecTransforms with standard javax @Inject
- Removed crufty delegatr stuff from ChainrTest.