/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/processor/js/AbstractNodeWithFallbackProcessor.java
}; }return processor;
return processor; } };
private final DestroyableLazyInitializer<ResourcePreProcessor> processorInitializer = new DestroyableLazyInitializer<ResourcePreProcessor>() { @Override protected ResourcePreProcessor initialize() { processor = createNodeProcessor(); processor = new ProcessorDecorator(processor).isSupported() ? processor: createFallbackProcessor(); injector.inject(processor); <extra_id_0> private ResourcePreProcessor processor; protected abstract ResourcePreProcessor createNodeProcessor(); @Override public final void process(final Resource resource, final Reader reader, final Writer writer) throws IOException { processorInitializer.get().process(resource, reader, writer);