Package freemarker.template
Class DefaultObjectWrapperBuilder
- java.lang.Object
-
- freemarker.ext.beans.BeansWrapperConfiguration
-
- freemarker.template.DefaultObjectWrapperConfiguration
-
- freemarker.template.DefaultObjectWrapperBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class DefaultObjectWrapperBuilder extends DefaultObjectWrapperConfiguration
Gets/creates aDefaultObjectWrappersingleton instance that's already configured as specified in the properties of this object; this is recommended over using theDefaultObjectWrapperconstructors. The returned instance can't be further configured (it's write protected).See
BeansWrapperBuilderfor more info, as that works identically.- Since:
- 2.3.21
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectWrapperBuilder(Version incompatibleImprovements)Creates a builder that creates aDefaultObjectWrapperwith the givenincompatibleImprovements; using at least 2.3.22 is highly recommended.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultObjectWrapperbuild()Returns aDefaultObjectWrapperinstance 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, getExposeFields, getExposureLevel, getIncompatibleImprovements, getMemberAccessPolicy, getMethodAppearanceFineTuner, getOuterIdentity, getPreferIndexedReadMethod, getTreatDefaultMethodsAsBeanMembers, getUseModelCache, isSimpleMapWrapper, isStrict, setDefaultDateType, setExposeFields, setExposureLevel, setMemberAccessPolicy, setMethodAppearanceFineTuner, setOuterIdentity, setPreferIndexedReadMethod, setSimpleMapWrapper, setStrict, setTreatDefaultMethodsAsBeanMembers, setUseModelCache
-
-
-
-
Constructor Detail
-
DefaultObjectWrapperBuilder
public DefaultObjectWrapperBuilder(Version incompatibleImprovements)
Creates a builder that creates aDefaultObjectWrapperwith the givenincompatibleImprovements; using at least 2.3.22 is highly recommended. SeeDefaultObjectWrapper(Version)for more information about the impact ofincompatibleImprovementsvalues.
-
-
Method Detail
-
build
public DefaultObjectWrapper build()
Returns aDefaultObjectWrapperinstance that matches the settings of this builder. This will be possibly a singleton that is also in use elsewhere.
-
-