@@ -0,0 +1,1004 @@
+package net.jmob.guice.conf.core.samples.simple;%0A%0Aimport static java.lang.String.format;%0A%0Aimport java.util.Optional;%0A%0Aimport com.google.inject.AbstractModule;%0Aimport com.google.inject.Guice;%0Aimport com.google.inject.Injector;%0A%0Aimport net.jmob.guice.conf.core.BindConfig;%0Aimport net.jmob.guice.conf.core.ConfigurationModule;%0Aimport net.jmob.guice.conf.core.InjectConfig;%0A%0A@BindConfig(value = %22net/jmob/guice/conf/core/samples/sample_01%22)%0Apublic class MyApp extends AbstractModule %7B%0A%0A    @InjectConfig%0A    private Optional%3CInteger%3E port;%0A%0A    @InjectConfig(%22complexType%22)%0A    private ServiceConfiguration config;%0A%0A%0A    @Override%0A    protected void configure() %7B%0A        install(ConfigurationModule.create());%0A    %7D%0A%0A    public static void main(String... args)  %7B%0A        Injector injector = Guice.createInjector(new MyApp());%0A        MyApp myApp = injector.getInstance(MyApp.class);%0A        System.out.println(format(%22Service value : %25s, port %25d%22, myApp.config.getValue(), myApp.port.orElse(-1)));%0A    %7D%0A%7D%0A

Add sample app