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

org.khasanof.collector.context.operation.ContainsHandlerMethodOperation Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy