package com.github.tinosteinort.beanrepository.example.basicexample;

import com.github.tinosteinort.beanrepository.application.env.ArgsProvider;

/**
 * This is a sample service which just print the command line arguments.
 */
public class ArgumentPrinter {

    private final ArgsProvider argsProvider;

    public ArgumentPrinter(final ArgsProvider argsProvider) {
        this.argsProvider = argsProvider;
    }

    public void printCommandLineArgs() {

        System.out.println("Commandline args[]:");

        for (String arg : argsProvider.get()) {
            System.out.println(" * '" + arg + "'");
        }
    }
}

@@ -299,16 +299,215 @@
 vider;%0A%0A
+    /**%0A     * The ArgsProvider is responsible for getting the command line arguments,%0A     *  so we need it as a dependency. The ArgsProvider bean is provided by%0A     *  the BeanRepository.%0A     */%0A
     publ

Add example description