Package freemarker.ext.beans
Annotation Type TemplateAccessible
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR,FIELD}) public @interface TemplateAccessibleIndicates that the the annotated member can be exposed to templates; if the annotated member will be actually exposed depends on theObjectWrapperin use, and how that was configured. When used withBeansWrapperor its subclasses, most notably withDefaultObjectWrapper, and you also set theMemberAccessPolicyto aWhitelistMemberAccessPolicy, it will acts as if the members annotated with this are in the whitelist. Note that adding something to the whitelist doesn't necessary make it visible from templates; seeWhitelistMemberAccessPolicydocumentation.- Since:
- 2.3.30