![JAR search and dependency download from the Maven repository](/logo.png)
ac.simons.spring.boot.wro4j.processors.Wro4jProcessorProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wro4j-spring-boot-starter Show documentation
Show all versions of wro4j-spring-boot-starter Show documentation
A starter for Spring Boot that provides autoconfiguration for Wro4j.
/*
* Copyright 2015-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ac.simons.spring.boot.wro4j.processors;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import ro.isdc.wro.model.resource.processor.ResourcePostProcessor;
import ro.isdc.wro.model.resource.processor.ResourcePreProcessor;
import ro.isdc.wro.model.resource.processor.support.ProcessorProvider;
/**
* Configures the additional processors this starter provides.
*
* @author Michael J. Simons, 2016-01-18
*/
public class Wro4jProcessorProvider implements ProcessorProvider {
private final Map preProcessors;
private final Map postProcessors;
public Wro4jProcessorProvider() {
final Map tmp = new HashMap();
tmp.put("removeSourceMaps", new RemoveSourceMapsProcessor());
this.preProcessors = Collections.unmodifiableMap(tmp);
this.postProcessors = Collections.unmodifiableMap(new HashMap());
}
@Override
public Map providePreProcessors() {
return this.preProcessors;
}
@Override
public Map providePostProcessors() {
return this.postProcessors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy