io.bootique.jersey.JerseyModuleProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bootique-jersey Show documentation
Show all versions of bootique-jersey Show documentation
Provides Jersey JAX-RS integration with Bootique.
package io.bootique.jersey;
import com.google.inject.Module;
import io.bootique.BQModuleProvider;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.Map;
public class JerseyModuleProvider implements BQModuleProvider {
@Override
public Module module() {
return new JerseyModule();
}
/**
* @return a single-entry map with {@link JerseyServletFactory}.
* @since 0.19
*/
@Override
public Map configs() {
// TODO: config prefix is hardcoded. Refactor away from ConfigModule, and make provider
// generate config prefix, reusing it in metadata...
return Collections.singletonMap("jersey", JerseyServletFactory.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy