Annotation Type TriggerCallable


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface TriggerCallable
    A field of type Callable annotated with this annotation used to inject the callable for the trigger. The injection is setter based so a corresponding setter in the type is mandatory TriggerCallable.

    This annotation can only be used when the BotCommand has commandType set as Trigger.

    exactly one field needs to be annotated when BotCommand annotation is present on the type.