| Modifier and Type | Method and Description |
|---|---|
protected abstract List<ResourcePreProcessor> |
AbstractProcessorsFilter.getProcessorsList() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConfigurableWroManagerFactory.contributePreProcessors(Map<String,ResourcePreProcessor> map)
Allow subclasses to contribute with it's own pre processors.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ResourceProcessorAware
Marker interface which extends all interfaces a processor can extend.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractProcessorDecoratorSupport<T>
Hides details common to all processors decorators, like ability to identify if a processor is minimize aware
|
class |
BenchmarkProcessorDecorator
A decorator responsible for tracking the time spent with processing.
|
class |
CopyrightKeeperProcessorDecorator
Inspects the resource for copyright (licence) header and inserts them back if the decorated processor removes them.
|
class |
DefaultProcessorDecorator
Decorates the processor with a set of common useful decorators during each processing.
|
class |
ExceptionHandlingProcessorDecorator
Responsible for handling exception thrown by decorated processor.
|
class |
ExtensionsAwareProcessorDecorator
Enforce decorated processors to be applied only on predefined extension.
|
class |
ImportAwareProcessorDecorator
Check if the decorated processor is considered import aware.
|
class |
LazyProcessorDecorator
Decorates a
LazyInitializer which creates a processor. |
class |
MinimizeAwareProcessorDecorator
Enhance the decorated processor with the ability to skip processing based on minimize aware state of the processor.
|
class |
ProcessorDecorator
Default implementation which can decorate a processor.
|
class |
SupportAwareProcessorDecorator
Check if the decorated processor implements
SupportAware interface and throws the WroRuntimeException
with specific message when processor is not supported. |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionsAwareProcessorDecorator |
ExtensionsAwareProcessorDecorator.decorate(ResourcePreProcessor preProcessor) |
static CopyrightKeeperProcessorDecorator |
CopyrightKeeperProcessorDecorator.decorate(ResourcePreProcessor preProcessor) |
| Constructor and Description |
|---|
LazyProcessorDecorator(LazyInitializer<ResourcePreProcessor> processor) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ResourcePreProcessor> |
SimpleProcessorsFactory.getPreProcessors() |
Collection<ResourcePreProcessor> |
ProcessorsFactory.getPreProcessors() |
Collection<ResourcePreProcessor> |
ConfigurableProcessorsFactory.getPreProcessors() |
protected Map<String,ResourcePreProcessor> |
ConfigurableProcessorsFactory.getPreProcessorStrategies(ProcessorProvider provider) |
protected Map<String,ResourcePreProcessor> |
ConfigurableProcessorsFactory.newPreProcessorsMap()
By default the processor will be discovered using
ServiceRegistry pattern (by inspecting META-INF/services
folder of each dependency). |
| Modifier and Type | Method and Description |
|---|---|
SimpleProcessorsFactory |
SimpleProcessorsFactory.addPreProcessor(ResourcePreProcessor processor)
Add a
ResourcePreProcessor. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableProcessorsFactory |
ConfigurableProcessorsFactory.setPreProcessorsMap(Map<String,ResourcePreProcessor> map) |
void |
SimpleProcessorsFactory.setResourcePreProcessors(Collection<ResourcePreProcessor> processors) |
| Modifier and Type | Class and Description |
|---|---|
class |
CommentStripperProcessor
CommentStripperProcessor.
|
class |
MultiLineCommentStripperProcessor
Removes multi line comments from processed resource.
|
class |
PlaceholderProcessor
A processor which parse a resource and search for placeholders of this type:
${} and replace them with
the values found in a map provided the by client. |
class |
SingleLineCommentStripperProcessor
SingleLineCommentStripperProcessor can be both: preProcessor & postProcessor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCssImportPreProcessor
CssImport Processor responsible for handling css
@import statement. |
class |
AbstractCssUrlRewritingProcessor
A processor responsible for rewriting url's from inside the css resources.
|
class |
ConformColorsCssProcessor
A processor which transform all colors to #rgb format.
|
class |
CssCompressorProcessor
A processor implementation using
CssCompressor algorithm. |
class |
CssDataUriPreProcessor
Rewrites background images by replacing the url with data uri of the image.
|
class |
CssImportPreProcessor
CssImport Processor responsible for handling css
@import statement. |
class |
CssMinProcessor
A processor implementation using
CSSMin algorithm. |
class |
CssUrlAuthorizationProcessor
This needs to be paired with the CssUrlRewritingProcessor for expected functionality.
|
class |
CssUrlRewritingProcessor
Note: When used together with
CssImportPreProcessor, the CssUrlRewritingProcessor should come first,
otherwise it will produce wrong results. |
class |
CssVariablesProcessor
Processor of css resources, responsible for replacing variables.
|
class |
DuplicatesAwareCssDataUriPreProcessor
Similar to
CssDataUriPreProcessor which instead of replacing a url blindly with dataUri, is is smart enough to
detect duplicated image url and avoid replacing it with dataUri. |
class |
FallbackCssDataUriProcessor
Preserves the original css uri along with the new one.
|
class |
JawrCssMinifierProcessor
A processor implementation using
JawrCssMinifier algorithm. |
class |
LessCssImportPreProcessor
A processor capable of handling LessCss imports
|
class |
VariablizeColorsCssProcessor |
| Modifier and Type | Class and Description |
|---|---|
class |
ConsoleStripperProcessor
A preProcessor, responsible for removing console.log(..) and console.debug(..) statements.
|
class |
JSMinProcessor
Use JSMin utility for js compression.
|
class |
SemicolonAppenderPreProcessor
A preProcessor, responsible for adding a ';' character to the end of each js file.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChainedProcessor
A processor which uses a list of processors to compute the result.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ResourcePreProcessor> |
ProcessorProvider.providePreProcessors() |
Map<String,ResourcePreProcessor> |
DefaultProcessorProvider.providePreProcessors() |
| Modifier and Type | Method and Description |
|---|---|
static ChainedProcessor |
ChainedProcessor.create(ResourcePreProcessor... processors) |
| Modifier and Type | Method and Description |
|---|---|
static void |
WroTestUtils.assertProcessorSupportResourceTypes(ResourcePreProcessor processor,
ResourceType... expectedResourceTypes)
Asserts that a processor supports provided resource types.
|
static void |
WroTestUtils.compareFromDifferentFolders(File sourceFolder,
File targetFolder,
ResourcePreProcessor processor)
Process and compare all the files from the sourceFolder and compare them with the files from the targetFolder.
|
static void |
WroTestUtils.compareFromDifferentFoldersByExtension(File sourceFolder,
File targetFolder,
String extension,
ResourcePreProcessor processor) |
static void |
WroTestUtils.compareFromSameFolder(File sourceFolder,
org.apache.commons.io.filefilter.IOFileFilter sourceFileFilter,
Transformer<String> toTargetFileName,
ResourcePreProcessor processor) |
static void |
WroTestUtils.initProcessor(ResourcePreProcessor processor) |
static ResourcePostProcessor |
WroUtil.newResourceProcessor(Resource resource,
ResourcePreProcessor preProcessor)
A factory method for creating a
ResourceProcessor based on provided ResourcePreProcessor. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ResourcePreProcessor> |
DefaultConfigurableProvider.providePreProcessors() |
Map<String,ResourcePreProcessor> |
ConfigurableProviderSupport.providePreProcessors() |
Copyright © 2008-2014. All Rights Reserved.