Class BeansWrapperConfiguration

java.lang.Object
freemarker.ext.beans.BeansWrapperConfiguration
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BeansWrapperBuilder, DefaultObjectWrapperConfiguration

public abstract class BeansWrapperConfiguration extends Object implements Cloneable
Holds BeansWrapper configuration settings and defines their defaults. You will not use this abstract class directly, but concrete subclasses like BeansWrapperBuilder and DefaultObjectWrapperBuilder. Unless, you are developing a builder for a custom BeansWrapper subclass.

This class is designed so that its instances can be used as lookup keys in a singleton cache. This is also why this class defines the configuration setting defaults for BeansWrapper, instead of leaving that to BeansWrapper itself. (Because, the default values influence the lookup key, and the singleton needs to be looked up without creating a BeansWrapper instance.) However, because instances are mutable, you should deep-clone it with clone(boolean) before using it as cache key.

Since:
2.3.21