public interface LiquidSupport extends Inspectable
Inspectable that do not perform
object conversion to Map<String, Object> using jackson mapper,
but instead uses result of method toLiquid().
So the objects of this kind can control with internal properties and under
what names should be accessible to parser.
For example, this Inspectable:
new Inspectable() {
public String myVar = "val";
}
will gave same data tree as this LiquidSupport:
new LiquidSupport() {
public String willBe = "omitted";
private Thread evenNotSerializedOrMappable = new Thread();
private Map<String, Object> data = new HashMap<>();
public Map<String, Object> toLiquid() {
data.put("myVar", "val");
return data;
}
}
| Modifier and Type | Interface and Description |
|---|---|
static class |
LiquidSupport.LiquidSerializer |
static class |
LiquidSupport.LiquidSupportFromInspectable
The implementation of converter from Inspectable to LiquidSupport.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
toLiquid() |
Copyright © 2012–2021. All rights reserved.