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

org.spincast.plugins.response.SpincastResponsePluginModule Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.spincast.plugins.response;

import org.spincast.core.exchange.RequestContext;
import org.spincast.core.exchange.ResponseRequestContextAddon;
import org.spincast.core.guice.SpincastGuiceModuleBase;
import org.spincast.core.guice.SpincastGuiceScopes;
import org.spincast.core.websocket.WebsocketContext;

/**
 * Spincast Response plugin.
 */
public class SpincastResponsePluginModule extends SpincastGuiceModuleBase {

    public SpincastResponsePluginModule() {
        super();
    }

    public SpincastResponsePluginModule(Class> requestContextImplementationClass,
                                        Class> websocketContextImplementationClass) {
        super(requestContextImplementationClass, websocketContextImplementationClass);
    }

    @Override
    protected void configure() {
        bindRequestContextAddon();
    }

    protected void bindRequestContextAddon() {

        bind(parameterizeWithRequestContext(ResponseRequestContextAddon.class)).to(parameterizeWithContextInterfaces(SpincastResponseRequestContextAddon.class))
                                                                               .in(SpincastGuiceScopes.REQUEST);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy