hey guys, I am very confused with something: ``` ...
# getting-started
t
hey guys, I am very confused with something:
Copy code
@Bean
    open fun init(repository: MachineRepository) = CommandLineRunner {
        repository.save(Machine("first machine"))
        repository.save(Machine("2nd machine"))
    }
CommandLineRunner is an Interface from Spring Boot: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-command-line-runner and it only contains a method with this signature:
Copy code
java
    public void run(String... args) {
        // Do something...
    }
I am not sure how the first block of the code runs with success, specifically the part of CommandLineRunner { // does some stuff here...}