Package freemarker.template
Class DefaultObjectWrapperBuilder
- java.lang.Object
-
- freemarker.ext.beans.BeansWrapperConfiguration
-
- freemarker.template.DefaultObjectWrapperConfiguration
-
- freemarker.template.DefaultObjectWrapperBuilder
-
- All Implemented Interfaces:
Cloneable
public class DefaultObjectWrapperBuilder extends DefaultObjectWrapperConfiguration
Gets/creates aDefaultObjectWrapper
singleton instance that's already configured as specified in the properties of this object; this is recommended over using theDefaultObjectWrapper
constructors. The returned instance can't be further configured (it's write protected).See
BeansWrapperBuilder
for more info, as that works identically.- Since:
- 2.3.21
-
-
Field Summary
-
Fields inherited from class freemarker.ext.beans.BeansWrapperConfiguration
classIntrospectorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectWrapperBuilder(Version incompatibleImprovements)
Creates a builder that creates aDefaultObjectWrapper
with the givenincompatibleImprovements
; using at least 2.3.22 is highly recommended.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultObjectWrapper
build()
Returns aDefaultObjectWrapper
instance that matches the settings of this builder.-
Methods inherited from class freemarker.template.DefaultObjectWrapperConfiguration
equals, getForceLegacyNonListCollections, getUseAdaptersForContainers, hashCode, setForceLegacyNonListCollections, setUseAdaptersForContainers
-
Methods inherited from class freemarker.ext.beans.BeansWrapperConfiguration
clone, getDefaultDateType, getExposeFields, getExposureLevel, getIncompatibleImprovements, getMethodAppearanceFineTuner, getOuterIdentity, getUseModelCache, isSimpleMapWrapper, isStrict, setDefaultDateType, setExposeFields, setExposureLevel, setMethodAppearanceFineTuner, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseModelCache
-
-
-
-
Constructor Detail
-
DefaultObjectWrapperBuilder
public DefaultObjectWrapperBuilder(Version incompatibleImprovements)
Creates a builder that creates aDefaultObjectWrapper
with the givenincompatibleImprovements
; using at least 2.3.22 is highly recommended. SeeDefaultObjectWrapper(Version)
for more information about the impact ofincompatibleImprovements
values.
-
-
Method Detail
-
build
public DefaultObjectWrapper build()
Returns aDefaultObjectWrapper
instance that matches the settings of this builder. This will be possibly a singleton that is also in use elsewhere.
-
-