slieb.blendercss.configuration.PreProcessorModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blender-css Show documentation
Show all versions of blender-css Show documentation
BlenderCss provides a java toolset that compiles css from
different supersets of css together.
The newest version!
package slieb.blendercss.configuration;
import com.google.inject.AbstractModule;
import slieb.blendercss.precompilers.internal.CssProcessor;
import static com.google.inject.multibindings.Multibinder.newSetBinder;
public class PreProcessorModule extends AbstractModule {
private final Class extends CssProcessor> preProcessorClass;
public PreProcessorModule(Class extends CssProcessor> preProcessorClass) {
this.preProcessorClass = preProcessorClass;
}
@Override
protected void configure() {
newSetBinder(binder(), CssProcessor.class).addBinding().to(preProcessorClass);
}
}