@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Include
Use this annotation on bean setters in your TemplateModel
class to
restrict which properties of the beans are imported into the model.
You can only define exact matches using this filter. If you need more
control, you can use
TemplateModel.importBean(String, Object, java.util.function.Predicate)
and define a custom filter.
Note that @Include
annotations are not inherited.
Exclude
public abstract String[] value
By default all properties are included.
Copyright © 2019. All rights reserved.