
org.spincast.plugins.httpcaching.SpincastHttpCachingPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-plugins-http-caching Show documentation
Show all versions of spincast-plugins-http-caching Show documentation
The default HTTP Caching plugin
package org.spincast.plugins.httpcaching;
import org.spincast.core.guice.SpincastPluginBase;
import com.google.inject.Module;
import com.google.inject.util.Modules;
/**
* Spincast HTTP Caching plugin.
*/
public class SpincastHttpCachingPlugin extends SpincastPluginBase {
public static final String PLUGIN_ID = SpincastHttpCachingPlugin.class.getName();
@Override
public String getId() {
return PLUGIN_ID;
}
@Override
public Module apply(Module module) {
Module pluginModule = getPluginModule();
setContextTypes(pluginModule);
module = Modules.override(module).with(pluginModule);
return module;
}
protected Module getPluginModule() {
return new SpincastHttpCachingPluginModule();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy