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

org.webpieces.plugins.json.JacksonPlugin Maven / Gradle / Ivy

Go to download

Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property

There is a newer version: 1.9.95
Show newest version
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 filterClazz;
	
	public JacksonPlugin(String filterPattern, Class 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