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 TypeClassDescriptionclass
Blacklist-based member access policy, that is, members that are matched by the listing will not be accessible, all others will be.final 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! UseWhitelistMemberAccessPolicy
if you need stricter control.final class
Legacy blacklist based member access policy, used only to keep old behavior, as it can't provide meaningful safety.class
Superclass for member-selector-list-based member access policies, likeWhitelistMemberAccessPolicy
.class
Whitelist-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 TypeMethodDescriptionvoid
BeansWrapper.setMemberAccessPolicy
(MemberAccessPolicy memberAccessPolicy) Sets theMemberAccessPolicy
; default isDefaultMemberAccessPolicy.getInstance(Version)
, which is not appropriate if template editors aren't trusted.void
BeansWrapperConfiguration.setMemberAccessPolicy
(MemberAccessPolicy memberAccessPolicy)