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

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

The newest version!
package org.khasanof.collector.context.operation;

import org.khasanof.collector.context.ContextOperation;
import org.khasanof.models.collector.FindHandlerMethod;
import org.khasanof.models.invoker.SimpleInvoker;
import org.khasanof.service.search.SearchHandlerMethodService;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * @author Nurislom
 * @see org.khasanof.collector.context
 * @since 1/15/2024 10:32 PM
 */
@Component
public class FindHandlerMethodOperation implements ContextOperation> {

    private final SearchHandlerMethodService searchHandlerMethodService;

    public FindHandlerMethodOperation(SearchHandlerMethodService searchHandlerMethodService) {
        this.searchHandlerMethodService = searchHandlerMethodService;
    }

    @Override
    public Optional execute(FindHandlerMethod method) {
        return searchHandlerMethodService.find(method);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy