/wro4j-core/src/main/java/ro/isdc/wro/model/resource/processor/decorator/LazyProcessorDecorator.java
processor = new ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator(getDecoratedObject().get()); injector.inject(processor);
if ( processor == null ) { processor = new ProcessorDecorator ( getDecoratedObject ( ) .get ( ) ) ; injector.inject ( processor ) ; }
private Injector injector; private ProcessorDecorator processor; public LazyProcessorDecorator(final LazyInitializer<ResourcePreProcessor> processor) { super(processor); } private ProcessorDecorator getProcessorDecorator() { <extra_id_0> return processor; } public void process(final Resource resource, final Reader reader, final Writer writer) throws IOException { getProcessorDecorator().process(resource, reader, writer); }