org.khasanof.collector.context.operation.ContainsHandlerMethodOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-fluent Show documentation
Show all versions of spring-boot-starter-fluent Show documentation
Fluent - Easy Telegram Bots with Spring
The newest version!
package org.khasanof.collector.context.operation;
import org.khasanof.collector.context.ContextOperation;
import org.khasanof.collector.context.SimpleMethodContext;
import org.khasanof.enums.HandleAnnotation;
import org.springframework.stereotype.Component;
/**
* @author Nurislom
* @see org.khasanof.collector.context.operation
* @since 1/15/2024 10:51 PM
*/
@Component
public class ContainsHandlerMethodOperation implements ContextOperation {
private final SimpleMethodContext methodContext;
public ContainsHandlerMethodOperation(SimpleMethodContext methodContext) {
this.methodContext = methodContext;
}
@Override
public Boolean execute(HandleAnnotation handleClasses) {
return methodContext.contains(handleClasses);
}
}