org.khasanof.executors.matcher.SimpleHandlerAnyMatcher 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
package org.khasanof.executors.matcher;
import org.khasanof.annotation.methods.HandleAny;
import org.khasanof.config.ApplicationConstants;
import org.khasanof.enums.HandleType;
import org.springframework.stereotype.Component;
/**
* @author Nurislom
* @see org.khasanof.executors.matcher
* @since 25.06.2023 22:50
*/
@Component
public class SimpleHandlerAnyMatcher extends GenericMatcher {
public SimpleHandlerAnyMatcher() {
super(ApplicationConstants.MATCHER_MAP);
}
@Override
public boolean matcher(HandleAny annotation, HandleType value) {
return annotation.type().equals(value);
}
@Override
public Class getType() {
return HandleAny.class;
}
}