| Modifier and Type | Method and Description |
|---|---|
protected void |
ConfigurableWroManagerFactory.contributePostProcessors(Map<String,ResourcePostProcessor> map)
Allow subclasses to contribute with it's own 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 |
|---|---|
Collection<ResourcePostProcessor> |
SimpleProcessorsFactory.getPostProcessors() |
Collection<ResourcePostProcessor> |
ProcessorsFactory.getPostProcessors() |
Collection<ResourcePostProcessor> |
ConfigurableProcessorsFactory.getPostProcessors() |
protected Map<String,ResourcePostProcessor> |
ConfigurableProcessorsFactory.getPostProcessorStrategies(ProcessorProvider provider) |
protected Map<String,ResourcePostProcessor> |
ConfigurableProcessorsFactory.newPostProcessorsMap()
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.addPostProcessor(ResourcePostProcessor processor)
Add a
ResourcePostProcessor. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableProcessorsFactory |
ConfigurableProcessorsFactory.setPostProcessorsMap(Map<String,ResourcePostProcessor> map) |
void |
SimpleProcessorsFactory.setResourcePostProcessors(Collection<ResourcePostProcessor> 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 |
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 |
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 |
VariablizeColorsCssProcessor |
| Modifier and Type | Class and Description |
|---|---|
class |
JSMinProcessor
Use JSMin utility for js compression.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ResourcePostProcessor> |
ProcessorProvider.providePostProcessors() |
Map<String,ResourcePostProcessor> |
DefaultProcessorProvider.providePostProcessors() |
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
static void |
WroTestUtils.compare(InputStream input,
InputStream expected,
ResourcePostProcessor processor) |
static void |
WroTestUtils.compare(Reader resultReader,
Reader expectedReader,
ResourcePostProcessor processor)
Compare contents of two resources (files) by performing some sort of processing on input resource.
|
static void |
WroTestUtils.compareFromDifferentFoldersByExtension(File sourceFolder,
File targetFolder,
String extension,
ResourcePostProcessor processor)
TODO run tests in parallel
|
static void |
WroTestUtils.compareFromDifferentFoldersByName(File sourceFolder,
File targetFolder,
String srcExtension,
String targetExtension,
ResourcePostProcessor processor)
Compares files with the same name from sourceFolder against it's counterpart in targetFolder, but allows source and
target files to have different extensions.
|
static void |
WroTestUtils.compareProcessedResourceContents(String inputResourceUri,
String expectedContentResourceUri,
ResourcePostProcessor processor)
Compare contents of two resources (files) by performing some sort of processing on input resource.
|
static void |
WroTestUtils.initProcessor(ResourcePostProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ResourcePostProcessor> |
DefaultConfigurableProvider.providePostProcessors() |
Map<String,ResourcePostProcessor> |
ConfigurableProviderSupport.providePostProcessors() |
Copyright © 2008-2014. All Rights Reserved.