Interface BotMetaDataResolver<T extends Annotation>
- Type Parameters:
T- the annotation type this resolver handles; must extendAnnotation
- 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 TypeMethodDescriptionReturns the annotation type that this resolver is responsible for evaluating.booleansupport(BotRequest botRequest, T annotation) Evaluates whether the given annotation instance indicates that the annotated handler method should handle the provided request.
-
Method Details
-
getAnnotationType
-
support
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 benullannotation- the annotation instance found on the handler method; must not benull- Returns:
trueif the handler method should be invoked for this request,falseotherwise
-