Uses of Package
freemarker.ext.beans
Packages that use freemarker.ext.beans
Package
Description
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.)-
Classes in freemarker.ext.beans used by freemarker.ext.beansClassDescriptionA class that will wrap an arbitrary object into
TemplateHashModelinterface allowing calls to arbitrary property getters and invocation of accessible methods on the object from a template using the object.foo to access properties and object.bar(arg1, arg2) to invoke methods on it.ObjectWrapperthat is able to expose the Java API of arbitrary Java objects.Used forMethodAppearanceFineTuner.process(freemarker.ext.beans.BeansWrapper.MethodAppearanceDecisionInput, freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision)to store the results; see there.Used forMethodAppearanceFineTuner.process(freemarker.ext.beans.BeansWrapper.MethodAppearanceDecisionInput, freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision)as input parameter; see there.HoldsBeansWrapperconfiguration settings and defines their defaults.Returned byMemberAccessPolicy.forClass(Class).Member access policy, used to implement default behavior that's mostly compatible with pre-2.3.30 versions, but is somewhat safer; it still can't provide safety in practice, if you allow untrusted users to edit templates! UseWhitelistMemberAccessPolicyif you need stricter control.Legacy blacklist based member access policy, used only to keep old behavior, as it can't provide meaningful safety.Implement this to restrict what class members (methods, fields, constructors) are accessible from templates.Superclass for member-selector-list-based member access policies, likeWhitelistMemberAccessPolicy.A condition that matches some type members.Used for customizing how the methods are visible from templates, viaBeansWrapper.setMethodAppearanceFineTuner(MethodAppearanceFineTuner).Subclass ofBeanModelthat exposes the return value of theObject.toString()method through theTemplateScalarModelinterface. -
Classes in freemarker.ext.beans used by freemarker.templateClassDescription
ObjectWrapperthat is able to expose the Java API of arbitrary Java objects.HoldsBeansWrapperconfiguration settings and defines their defaults.