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

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

@RestController
public class FieldInjectionController {

    @Autowired
    @Qualifier("customName")
    private QuirkService myFieldService;

    @GetMapping("/test-field")
    public void testField() {
        myFieldService.doQuirk();
    }
}
