Annotation Type TriggerRunnable


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface TriggerRunnable
    A field of type Runnable 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 TriggerRunnable.

    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.