All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bootique.jersey.JerseyModuleProvider Maven / Gradle / Ivy

There is a newer version: 3.0.M2
Show newest version
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