Interface Evaluator

All Superinterfaces:
AutoCloseable

public interface Evaluator extends AutoCloseable
Evaluator interface. An implementation of this is used during evaluation of all expressions for one component descriptor as needed. This does not need to be thread safe and it will not be used across component descriptors without receiving intermediate init/destroy calls.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    default close session does nothing
    eval(String expression)
    Evaluate an expression tagged for this processor.
    void
    Initialize evalution session
  • Method Details

    • init

      void init(EvaluationContext context)
      Initialize evalution session
    • eval

      Object eval(String expression)
      Evaluate an expression tagged for this processor. A result of null is legal during processing but will eventually be removed from the properties set.
    • close

      default void close()
      default close session does nothing
      Specified by:
      close in interface AutoCloseable