Class FTLTemplateProcessor.NonBlockingObjectWrapper

java.lang.Object
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.NonBlockingObjectWrapper
All Implemented Interfaces:
freemarker.template.ObjectWrapper
Enclosing class:
FTLTemplateProcessor

public static class FTLTemplateProcessor.NonBlockingObjectWrapper extends Object implements freemarker.template.ObjectWrapper
Implements the FreeMarker ObjectWrapper cache as a ThreadLocal to avoid blocking when interogating or populating the bean cache.
Author:
dward
  • Constructor Details

    • NonBlockingObjectWrapper

      public NonBlockingObjectWrapper()
  • Method Details

    • wrap

      public freemarker.template.TemplateModel wrap(Object obj) throws freemarker.template.TemplateModelException
      Specified by:
      wrap in interface freemarker.template.ObjectWrapper
      Throws:
      freemarker.template.TemplateModelException