Interface BotMetaDataResolver<T extends Annotation>

Type Parameters:
T - the annotation type this resolver handles; must extend Annotation
All Known Subinterfaces:
BotMetaDataDefaultResolver<T>, BotMetaDataSpecResolver<T>

public interface BotMetaDataResolver<T extends Annotation>
Core generic interface for matching a specific handler annotation against an incoming BotRequest. Each implementation is bound to a concrete annotation type T and encodes the logic for deciding whether the annotated handler method should be invoked for the current request.
Since:
0.0.1
Author:
Islom Mirsaburov
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the annotation type that this resolver is responsible for evaluating.
    boolean
    support(BotRequest botRequest, T annotation)
    Evaluates whether the given annotation instance indicates that the annotated handler method should handle the provided request.
  • Method Details

    • getAnnotationType

      Class<T> getAnnotationType()
      Returns the annotation type that this resolver is responsible for evaluating.
      Returns:
      the Class object representing the annotation type T
    • support

      boolean support(BotRequest botRequest, T annotation)
      Evaluates whether the given annotation instance indicates that the annotated handler method should handle the provided request.
      Parameters:
      botRequest - the current request context containing the incoming update; must not be null
      annotation - the annotation instance found on the handler method; must not be null
      Returns:
      true if the handler method should be invoked for this request, false otherwise