Package freemarker.template
Class DefaultObjectWrapperConfiguration
- java.lang.Object
-
- freemarker.ext.beans.BeansWrapperConfiguration
-
- freemarker.template.DefaultObjectWrapperConfiguration
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DefaultObjectWrapperBuilder
public abstract class DefaultObjectWrapperConfiguration extends BeansWrapperConfiguration
HoldsDefaultObjectWrapperconfiguration settings and defines their defaults. You will not use this abstract class directly, but concrete subclasses likeDefaultObjectWrapperBuilder. Unless, you are developing a builder for a customDefaultObjectWrappersubclass. In that case, note that overriding theequals(java.lang.Object)andhashCode()is important, as these object are used asObjectWrappersingleton lookup keys.- Since:
- 2.3.22
-
-
Field Summary
-
Fields inherited from class freemarker.ext.beans.BeansWrapperConfiguration
classIntrospectorFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultObjectWrapperConfiguration(Version incompatibleImprovements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object that)TwoBeansWrapperConfiguration-s are equal exactly if their classes are identical (==), and their field values are equal.booleangetForceLegacyNonListCollections()booleangetUseAdaptersForContainers()inthashCode()voidsetForceLegacyNonListCollections(boolean legacyNonListCollectionWrapping)voidsetUseAdaptersForContainers(boolean useAdaptersForContainers)-
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
-
DefaultObjectWrapperConfiguration
protected DefaultObjectWrapperConfiguration(Version incompatibleImprovements)
-
-
Method Detail
-
getUseAdaptersForContainers
public boolean getUseAdaptersForContainers()
-
setUseAdaptersForContainers
public void setUseAdaptersForContainers(boolean useAdaptersForContainers)
-
getForceLegacyNonListCollections
public boolean getForceLegacyNonListCollections()
-
setForceLegacyNonListCollections
public void setForceLegacyNonListCollections(boolean legacyNonListCollectionWrapping)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBeansWrapperConfiguration
-
equals
public boolean equals(Object that)
Description copied from class:BeansWrapperConfigurationTwoBeansWrapperConfiguration-s are equal exactly if their classes are identical (==), and their field values are equal.- Overrides:
equalsin classBeansWrapperConfiguration
-
-