Uses of Interface
freemarker.ext.beans.MemberAccessPolicy
Packages that use MemberAccessPolicy
Package
Description
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
-
Uses of MemberAccessPolicy in freemarker.ext.beans
Classes in freemarker.ext.beans that implement MemberAccessPolicyModifier and TypeClassDescriptionclassBlacklist-based member access policy, that is, members that are matched by the listing will not be accessible, all others will be.final classMember 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.final classLegacy blacklist based member access policy, used only to keep old behavior, as it can't provide meaningful safety.classSuperclass for member-selector-list-based member access policies, likeWhitelistMemberAccessPolicy.classWhitelist-based member access policy, that is, only members that are matched by the listing will be exposed.Methods in freemarker.ext.beans that return MemberAccessPolicyModifier and TypeMethodDescriptionBeansWrapper.getMemberAccessPolicy()BeansWrapperConfiguration.getMemberAccessPolicy()Methods in freemarker.ext.beans with parameters of type MemberAccessPolicyModifier and TypeMethodDescriptionvoidBeansWrapper.setMemberAccessPolicy(MemberAccessPolicy memberAccessPolicy) Sets theMemberAccessPolicy; default isDefaultMemberAccessPolicy.getInstance(Version), which is not appropriate if template editors aren't trusted.voidBeansWrapperConfiguration.setMemberAccessPolicy(MemberAccessPolicy memberAccessPolicy)