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

org.spincast.plugins.request.SpincastRequestPlugin Maven / Gradle / Ivy

package org.spincast.plugins.request;

import org.spincast.core.guice.SpincastPluginBase;

import com.google.inject.Module;
import com.google.inject.util.Modules;

/**
 * Guice module for the Spincast Request plugin.
 */
public class SpincastRequestPlugin extends SpincastPluginBase {

    public static final String PLUGIN_ID = SpincastRequestPlugin.class.getName();

    @Override
    public String getId() {
        return PLUGIN_ID;
    }

    @Override
    public Module apply(Module module) {

        Module pluginModule = getPluginModule();
        setContextTypes(pluginModule);

        module = Modules.override(pluginModule).with(module);
        return module;
    }

    protected Module getPluginModule() {
        return new SpincastRequestPluginModule();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy