package click.kamil.examples.statemachine.extended.web;

import click.kamil.examples.statemachine.extended.service.QuirkService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConcreteReturnTypeController {

    private final QuirkService hiddenConcreteService;

    public ConcreteReturnTypeController(@Qualifier("hiddenConcreteService") QuirkService hiddenConcreteService) {
        this.hiddenConcreteService = hiddenConcreteService;
    }

    @GetMapping("/test-concrete")
    public void testConcrete() {
        hiddenConcreteService.doQuirk();
    }
}
