- All Implemented Interfaces:
- ToSoyDataConverter
public class DefaultToSoyDataConverter
extends java.lang.Object
implements ToSoyDataConverter
An implementation of ToSoyDataConverter that will recursively inspect
a passed in model and build a nested structure of SoyMapData objects,
which consist only of primitives supported by Soy and thus can be
rendered.
An implementation supports passing a model object, which is wrapped in Callable or
a Future.
In case a model wrapped in Callable is passed, the implementation will
get a wrapped model object during invocation of this method.
In case a model wrapped in Future is passed, the implementation will *synchronously*
get a wrapped model object during invocation of this method, assuming a 2 minutes
timeout by default. If such a behaviour should be altered, developers
are requested to provider their own implementation.