org.spincast.plugins.jacksonjson.SpincastJacksonJsonPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-plugins-jackson-json Show documentation
Show all versions of spincast-plugins-jackson-json Show documentation
The default Spincast Jackson Json plugin
The newest version!
package org.spincast.plugins.jacksonjson;
import org.spincast.core.guice.SpincastPluginBase;
import com.google.inject.Module;
import com.google.inject.util.Modules;
public class SpincastJacksonJsonPlugin extends SpincastPluginBase {
public static final String PLUGIN_ID = SpincastJacksonJsonPlugin.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 SpincastJacksonJsonPluginModule();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy