public interface SecuredJsCache
NashornSandboxes. The interface provides a facility
to implement concurrent caches, but the actual thread safety is at
the implementor's discretion.| Modifier and Type | Method and Description |
|---|---|
String |
getOrCreate(String js,
boolean allowNoBraces,
Supplier<String> producer)
Gets a value from the cache and tries to create it if it couldn't be found.
|
String getOrCreate(String js, boolean allowNoBraces, Supplier<String> producer)
js - the raw javascript codeallowNoBraces - whether missing braces are allowed.producer - if no cached value could be found, this is used to create the valueCopyright © 2019. All rights reserved.