All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.khasanof.executors.matcher.SimpleHandlerAnyMatcher Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy