ro.isdc.wro.extensions.processor
Class PathPatternProcessorDecorator
java.lang.Object
ro.isdc.wro.util.AbstractDecorator<T>
ro.isdc.wro.model.resource.processor.decorator.AbstractProcessorDecoratorSupport<ResourcePreProcessor>
ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator
ro.isdc.wro.extensions.processor.PathPatternProcessorDecorator
- All Implemented Interfaces:
- ImportAware, MinimizeAware, ResourcePostProcessor, ResourcePreProcessor, SupportAware, SupportedResourceTypeAware, ObjectDecorator<ResourcePreProcessor>
public final class PathPatternProcessorDecorator
- extends ProcessorDecorator
A ProcessorDecorator with Ant path style support. This processor requires AntPathMatcher provided by spring
framework.
The implementation is inspired from mwa project created by
Edgar Espina.
- Since:
- 1.5.0
- Author:
- Alex Objelean
include
public static PathPatternProcessorDecorator include(Object processor,
String... patterns)
- Decorates a processor which will be applied on provided patterns.
- Parameters:
processor - The processor to decorate.patterns - an array of patterns on which the processor will be applied.
- Returns:
- decorated processor.
exclude
public static PathPatternProcessorDecorator exclude(Object processor,
String... patterns)
- Decorates a processor which will not be applied on provided patterns.
- Parameters:
processor - The processor to decorate.patterns - an array of patterns on which the processor will not be applied.
- Returns:
- decorated processor.
process
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePreProcessor- Overrides:
process in class ProcessorDecorator
- Throws:
IOException
toString
public String toString()
-
- Overrides:
toString in class ProcessorDecorator
Copyright © 2008-2013. All Rights Reserved.