org.webpieces.plugins.json.JacksonPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-jackson-plugin Show documentation
Show all versions of json-jackson-plugin Show documentation
Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property
package org.webpieces.plugins.json;
import java.util.List;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import com.google.common.collect.Lists;
import com.google.inject.Module;
public class JacksonPlugin implements Plugin {
private String filterPattern;
private Class extends JacksonCatchAllFilter> filterClazz;
public JacksonPlugin(String filterPattern, Class extends JacksonCatchAllFilter> filterClazz) {
super();
this.filterPattern = filterPattern;
this.filterClazz = filterClazz;
}
@Override
public List getGuiceModules() {
return Lists.newArrayList(new JacksonModule());
}
@Override
public List getRouteModules() {
return Lists.newArrayList(new JacksonRoutes(filterPattern, filterClazz));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy