Package freemarker.ext.beans
Annotation Type TemplateAccessible
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR,FIELD}) public @interface TemplateAccessible
Indicates that the the annotated member can be exposed to templates; if the annotated member will be actually exposed depends on theObjectWrapper
in use, and how that was configured. When used withBeansWrapper
or its subclasses, most notably withDefaultObjectWrapper
, and you also set theMemberAccessPolicy
to 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; seeWhitelistMemberAccessPolicy
documentation.- Since:
- 2.3.30