package io.bootique.jetty;

import com.google.inject.Module;
import io.bootique.BQModule;
import io.bootique.BQModuleProvider;
import io.bootique.jetty.server.ServerFactory;

import java.util.Collections;
import java.util.Map;

public class JettyModuleProvider implements BQModuleProvider {

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

	/**
	 * @since 0.19
	 * @return a single entry map with {@link ServerFactory}.
	 */
	@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("jetty", ServerFactory.class);
	}

	@Override
	public BQModule.Builder moduleBuilder() {
		return BQModuleProvider.super
				.moduleBuilder()
				.description("Integrates Jetty web server in the application.");
	}
}

@@ -164,24 +164,55 @@
 erFactory;%0A%0A
+import java.lang.reflect.Type;%0A
 import java.
@@ -505,16 +505,12 @@
 ng, 
-Class%3C?%3E
+Type
 %3E co

Upgrade to Bootique 0.21: new app metadata package, annotated config help #56