Interface DFWrappedValue


  • public interface DFWrappedValue
    Provides lazily computed value. Value internally kept by an implementation could be for example Groovy script. Calling getUnwrappedValue() performs the computation and returns the value.

    Note: the name of the interface is rather unfortunate.

    Author:
    pzajac
    • Method Detail

      • getUnwrappedValue

        java.lang.Object getUnwrappedValue()
                                    throws javax.script.ScriptException
        Evaluates value this provider represents. E.g. triggers Groovy script evaluation. Note that this might be time-consuming operation.
        Returns:
        computed value
        Throws:
        javax.script.ScriptException - when evaluation fails
      • isValueReady

        boolean isValueReady()
        Returns:
        is the value already evaluated (computed)?