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
HoldsDefaultObjectWrapper
configuration 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 customDefaultObjectWrapper
subclass. In that case, note that overriding theequals(java.lang.Object)
andhashCode()
is important, as these object are used asObjectWrapper
singleton lookup keys.- Since:
- 2.3.22
-
-
Field Summary
-
Fields inherited from class freemarker.ext.beans.BeansWrapperConfiguration
classIntrospectorFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultObjectWrapperConfiguration(Version incompatibleImprovements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object that)
TwoBeansWrapperConfiguration
-s are equal exactly if their classes are identical (==
), and their field values are equal.boolean
getForceLegacyNonListCollections()
boolean
getUseAdaptersForContainers()
int
hashCode()
void
setForceLegacyNonListCollections(boolean legacyNonListCollectionWrapping)
void
setUseAdaptersForContainers(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:
hashCode
in classBeansWrapperConfiguration
-
equals
public boolean equals(Object that)
Description copied from class:BeansWrapperConfiguration
TwoBeansWrapperConfiguration
-s are equal exactly if their classes are identical (==
), and their field values are equal.- Overrides:
equals
in classBeansWrapperConfiguration
-
-