@Retention(value=CLASS) public @interface OnTrigger
For example
@LayoutSpec
public class ComponentSpec {
@OnTrigger(YourEvent.class)
static Object yourEventClick(ComponentContext c, @FromTrigger YourObject obj) {
return new Object();
}
}
OnEvent
public abstract Class<?> value