- All Known Implementing Classes:
- ValueSource.ByteValue,- ValueSource.ListValue,- ValueSource.MapValue,- ValueSource.ObjectValue,- ValueSource.TemplatedValue
public interface ValueSource
Holds a value. If the value is requested a copy is made and optionally template snippets are resolved too.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final classstatic final class
- 
Method SummaryModifier and TypeMethodDescriptioncopyAndResolve(Map<String, Object> model) Returns a copy of the value this ValueSource holds and resolves templates if there're any.static ValueSourcewrap(Object value, ScriptService scriptService) static ValueSource
- 
Method Details- 
copyAndResolveReturns a copy of the value this ValueSource holds and resolves templates if there're any. For immutable values only a copy of the reference to the value is made.- Parameters:
- model- The model to be used when resolving any templates
- Returns:
- copy of the wrapped value
 
- 
wrap
- 
wrapstatic ValueSource wrap(Object value, ScriptService scriptService, Map<String, String> scriptOptions) 
 
-