Package freemarker.template
Class DefaultObjectWrapperBuilder
java.lang.Object
freemarker.ext.beans.BeansWrapperConfiguration
freemarker.template.DefaultObjectWrapperConfiguration
freemarker.template.DefaultObjectWrapperBuilder
- All Implemented Interfaces:
Cloneable
Gets/creates a
DefaultObjectWrapper
singleton instance that's already configured as specified in the
properties of this object; this is recommended over using the DefaultObjectWrapper
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
-
Constructor Summary
ConstructorDescriptionDefaultObjectWrapperBuilder(Version incompatibleImprovements)
Creates a builder that creates aDefaultObjectWrapper
with the givenincompatibleImprovements
; using at least 2.3.22 is highly recommended. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns aDefaultObjectWrapper
instance that matches the settings of this builder.Methods inherited from class freemarker.template.DefaultObjectWrapperConfiguration
equals, getDOMNodeSupport, getForceLegacyNonListCollections, getIterableSupport, getJythonSupport, getUseAdaptersForContainers, hashCode, setDOMNodeSupport, setForceLegacyNonListCollections, setIterableSupport, setJythonSupport, setUseAdaptersForContainers
Methods inherited from class freemarker.ext.beans.BeansWrapperConfiguration
clone, getDefaultDateType, getDefaultZeroArgumentNonVoidMethodPolicy, getExposeFields, getExposureLevel, getIncompatibleImprovements, getMemberAccessPolicy, getMethodAppearanceFineTuner, getOuterIdentity, getPreferIndexedReadMethod, getRecordZeroArgumentNonVoidMethodPolicy, getTreatDefaultMethodsAsBeanMembers, getUseModelCache, isSimpleMapWrapper, isStrict, setDefaultDateType, setDefaultZeroArgumentNonVoidMethodPolicy, setExposeFields, setExposureLevel, setMemberAccessPolicy, setMethodAppearanceFineTuner, setOuterIdentity, setPreferIndexedReadMethod, setRecordZeroArgumentNonVoidMethodPolicy, setSimpleMapWrapper, setStrict, setTreatDefaultMethodsAsBeanMembers, setUseModelCache
-
Constructor Details
-
DefaultObjectWrapperBuilder
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 Details
-
build
Returns aDefaultObjectWrapper
instance that matches the settings of this builder. This will be possibly a singleton that is also in use elsewhere.
-