@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented public @interface ModelItem
Can be applied on parameters with classes found in the TemplateModel
.
This is by default a shorthand for @EventData("event.model.item")
that works with List
type model items. For other Model items define
the value to be the methodName e.g. for setSubItem(...)
use
@ModelItem("subItem")
.
public abstract String value
Copyright © 2018. All rights reserved.