Package | Description |
---|---|
freemarker.ext.beans |
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
|
Modifier and Type | Class and Description |
---|---|
class |
BlacklistMemberAccessPolicy
Blacklist-based member access policy, that is, members that are matched by the listing will not be accessible, all
others will be.
|
class |
DefaultMemberAccessPolicy
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! Use
WhitelistMemberAccessPolicy if you need stricter control. |
class |
LegacyDefaultMemberAccessPolicy
Legacy blacklist based member access policy, used only to keep old behavior, as it can't provide meaningful safety.
|
class |
MemberSelectorListMemberAccessPolicy
Superclass for member-selector-list-based member access policies, like
WhitelistMemberAccessPolicy . |
class |
WhitelistMemberAccessPolicy
Whitelist-based member access policy, that is, only members that are matched by the listing will be exposed.
|
Modifier and Type | Method and Description |
---|---|
MemberAccessPolicy |
BeansWrapperConfiguration.getMemberAccessPolicy() |
MemberAccessPolicy |
BeansWrapper.getMemberAccessPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
BeansWrapperConfiguration.setMemberAccessPolicy(MemberAccessPolicy memberAccessPolicy)
|
void |
BeansWrapper.setMemberAccessPolicy(MemberAccessPolicy memberAccessPolicy)
Sets the
MemberAccessPolicy ; default is DefaultMemberAccessPolicy.getInstance(Version) , which
is not appropriate if template editors aren't trusted. |