public class MagnoliaObjectWrapper
extends freemarker.template.DefaultObjectWrapper
EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE
Constructor and Description |
---|
MagnoliaObjectWrapper(FreemarkerConfig freemarkerConfig) |
Modifier and Type | Method and Description |
---|---|
protected freemarker.ext.util.ModelFactory |
getModelFactory(Class clazz)
Checks the ModelFactory instances registered in FreemarkerConfig, then
the default ones.
|
freemarker.template.TemplateModel |
wrap(Object obj) |
convertArray, getForceLegacyNonListCollections, getIterableSupport, getUseAdaptersForContainers, handleUnknownType, normalizeIncompatibleImprovementsVersion, setForceLegacyNonListCollections, setIterableSupport, setUseAdaptersForContainers, toPropertiesString, wrapDomNode
checkModifiable, clearClassIntrospecitonCache, coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, finalizeConstruction, finetuneMethodAppearance, getDefaultDateType, getDefaultInstance, getEnumModels, getExposureLevel, getIncompatibleImprovements, getInstance, getMethodAppearanceFineTuner, getOuterIdentity, getPreferIndexedReadMethod, getStaticModels, getTreatDefaultMethodsAsBeanMembers, getUseCache, isClassIntrospectionCacheRestricted, isExposeFields, isSimpleMapWrapper, isStrict, isWriteProtected, newInstance, removeFromClassIntrospectionCache, setDefaultDateType, setExposeFields, setExposureLevel, setMethodAppearanceFineTuner, setMethodsShadowItems, setNullModel, setOuterIdentity, setPreferIndexedReadMethod, setSimpleMapWrapper, setStrict, setTreatDefaultMethodsAsBeanMembers, setUseCache, toString, tryUnwrapTo, unwrap, unwrap, wrap, wrapAsAPI, writeProtect
public MagnoliaObjectWrapper(FreemarkerConfig freemarkerConfig)
public freemarker.template.TemplateModel wrap(Object obj) throws freemarker.template.TemplateModelException
wrap
in interface freemarker.template.ObjectWrapper
wrap
in class freemarker.template.DefaultObjectWrapper
freemarker.template.TemplateModelException
protected freemarker.ext.util.ModelFactory getModelFactory(Class clazz)
BeansModelCache
,
which is itself called by BeansWrapper.wrap(java.lang.Object)
.
These factories are cached by Freemarker, so this method only gets called
once per type of object.getModelFactory
in class freemarker.ext.beans.BeansWrapper
DEFAULT_MODEL_FACTORIES
,
FreemarkerConfig
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.