ro.isdc.wro.model.resource.processor.decorator
Class ImportAwareProcessorDecorator
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.model.resource.processor.decorator.ImportAwareProcessorDecorator
- All Implemented Interfaces:
- ImportAware, MinimizeAware, ResourcePostProcessor, ResourcePreProcessor, SupportAware, SupportedResourceTypeAware, ObjectDecorator<ResourcePreProcessor>
public class ImportAwareProcessorDecorator
- extends ProcessorDecorator
Check if the decorated processor is considered import aware.
- Since:
- 1.6.0
- Author:
- Alex Objelean
ImportAwareProcessorDecorator
public ImportAwareProcessorDecorator(Object processor,
ProcessingType processingType)
isEnabled
protected boolean isEnabled(Resource resource)
-
- Overrides:
isEnabled
in class ProcessorDecorator
- Parameters:
resource
- ResourcePreProcessor
for which enabled flag should be checked.
- Returns:
- a flag indicating if this processor is enabled. When false, the processing will be skipped and the content
will be left unchanged. This value is true by default.
Copyright © 2008-2013. All Rights Reserved.