Package com.bazaarvoice.jolt
Interface SpecDriven
- All Known Implementing Classes:
CardinalityTransform
,Defaultr
,Modifier
,Modifier.Defaultr
,Modifier.Definr
,Modifier.Overwritr
,Removr
,Shiftr
public interface SpecDriven
Marker interface for Jolt Transforms that are based off a "spec".
Implementations of this interface are expected to have a single arg constructor,
which takes an
Object
that is the spec for the constructed instance.
Chainr leverages this to instantiate these objects correctly.
Additionally, all SpecDriven
implementations should mark their constructor
with the Inject
annotation, so that they can be loaded via
Dependency Injection systems.
All of the "stock" Jolt SpecDriven
transforms are marked with Inject
.
Ideally, calls to the transform method are expected to be stateless and multi-thread safe.-
Field Summary
Fields
-
Field Details
-
ROOT_KEY
- See Also:
-