Class TemplateDefaultObjectWrapper

java.lang.Object
freemarker.ext.beans.BeansWrapper
freemarker.template.DefaultObjectWrapper
ch.tocco.nice2.templating.impl.freemarker.templatemodel.TemplateDefaultObjectWrapper
All Implemented Interfaces:
freemarker.template.ObjectWrapper, freemarker.template.ObjectWrapperAndUnwrapper, freemarker.template.utility.ObjectWrapperWithAPISupport, freemarker.template.utility.RichObjectWrapper, freemarker.template.utility.WriteProtectable

@Component public class TemplateDefaultObjectWrapper extends freemarker.template.DefaultObjectWrapper
  • Nested Class Summary

    Nested classes/interfaces inherited from class freemarker.ext.beans.BeansWrapper

    freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision, freemarker.ext.beans.BeansWrapper.MethodAppearanceDecisionInput
  • Field Summary

    Fields inherited from class freemarker.ext.beans.BeansWrapper

    EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE

    Fields inherited from interface freemarker.template.ObjectWrapper

    BEANS_WRAPPER, DEFAULT_WRAPPER, SIMPLE_WRAPPER

    Fields inherited from interface freemarker.template.ObjectWrapperAndUnwrapper

    CANT_UNWRAP_TO_TARGET_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    freemarker.template.TemplateModel
    wrap(Object obj)
     

    Methods inherited from class freemarker.template.DefaultObjectWrapper

    convertArray, getDOMNodeSupport, getForceLegacyNonListCollections, getIterableSupport, getJythonSupport, getUseAdaptersForContainers, handleUnknownType, normalizeIncompatibleImprovementsVersion, setDOMNodeSupport, setForceLegacyNonListCollections, setIterableSupport, setJythonSupport, setUseAdaptersForContainers, toPropertiesString, wrapDomNode

    Methods inherited from class freemarker.ext.beans.BeansWrapper

    checkModifiable, clearClassIntrospecitonCache, clearClassIntrospectionCache, coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, finalizeConstruction, finetuneMethodAppearance, getDefaultDateType, getDefaultInstance, getDefaultZeroArgumentNonVoidMethodPolicy, getEnumModels, getExposureLevel, getIncompatibleImprovements, getInstance, getMemberAccessPolicy, getMethodAppearanceFineTuner, getModelFactory, getOuterIdentity, getPreferIndexedReadMethod, getRecordZeroArgumentNonVoidMethodPolicy, getStaticModels, getTreatDefaultMethodsAsBeanMembers, getUseCache, invokeMethod, isClassIntrospectionCacheRestricted, isExposeFields, isSimpleMapWrapper, isStrict, isWriteProtected, newInstance, readField, removeFromClassIntrospectionCache, setDefaultDateType, setDefaultZeroArgumentNonVoidMethodPolicy, setExposeFields, setExposureLevel, setMemberAccessPolicy, setMethodAppearanceFineTuner, setMethodsShadowItems, setNullModel, setOuterIdentity, setPreferIndexedReadMethod, setRecordZeroArgumentNonVoidMethodPolicy, setSimpleMapWrapper, setStrict, setTreatDefaultMethodsAsBeanMembers, setUseCache, toString, tryUnwrapTo, unwrap, unwrap, wrap, wrapAsAPI, writeProtect

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TemplateDefaultObjectWrapper

      public TemplateDefaultObjectWrapper()
  • Method Details

    • setObjectWrappers

      @Autowired public void setObjectWrappers(List<TemplateObjectWrapper> objectWrappers)
    • wrap

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