Class TemplateContext<C>


  • public abstract class TemplateContext<C>
    extends Object
    Wrapper for scripting context implementations.
    • Field Detail

      • context

        protected C context
    • Constructor Detail

      • TemplateContext

        public TemplateContext​(C wrappedContext)
        Default constructor
        Parameters:
        wrappedContext - The wrapped scripting context
    • Method Detail

      • getContext

        public C getContext()
        Returns the wrapped context
      • getValue

        public abstract Object getValue​(String name)
        Returns the value of the named context parameter.
        Parameters:
        name - The parameter name