package io.bootique.logback;

import com.google.inject.Module;
import io.bootique.BQModuleProvider;

import java.util.Collections;
import java.util.Map;
import io.bootique.BQModule;

public class LogbackModuleProvider implements BQModuleProvider {

	@Override
	public Module module() {
		return new LogbackModule();
	}

	@Override
	public Map<String, Class<?>> configs() {
		// TODO: config prefix is hardcoded. Refactor away from ConfigModule, and make provider
		// generate config prefix, reusing it in metadata...
		return Collections.singletonMap("log", LogbackContextFactory.class);
	}

	@Override
	public BQModule.Builder moduleBuilder() {
		return BQModuleProvider.super
				.moduleBuilder()
				.description("Provides logging configuration.");
	}
}

@@ -56,16 +56,45 @@
 Module;%0A
+import io.bootique.BQModule;%0A
 import i
@@ -139,24 +139,25 @@
 ava.
-util.Collections
+lang.reflect.Type
 ;%0Aim
@@ -175,40 +175,41 @@
 til.
-Map;%0Aimport io.bootique.BQModule
+Collections;%0Aimport java.util.Map
 ;%0A%0Ap
@@ -379,16 +379,12 @@
 ng, 
-Class%3C?%3E
+Type
 %3E co

Upgrade to Bootique 0.21 and annotate configs #26