Package ro.isdc.wro.model.resource.processor

Examples of ro.isdc.wro.model.resource.processor.ResourcePreProcessor


  @Test
  public void shouldNotChangeAfterInjectionSupportedNotNullObject()
      throws Exception {
    new Callable<Void>() {
      @Inject
      private final ResourcePreProcessor inner = new ResourcePreProcessor() {
        public void process(final Resource resource, final Reader reader, final Writer writer)
            throws IOException {
        }
      };
View Full Code Here


    throw new IllegalArgumentException("Unknown processor: " + processor);
  }

  @Override
  public void setEnvironment(final Environment environment) {
    ResourcePreProcessor processor = getDecoratedObject();
    if (processor instanceof EnvironmentAware) {
      ((EnvironmentAware) processor).setEnvironment(environment);
    }
  }
View Full Code Here

    }
  }

  @Override
  public void setMode(final Mode mode) {
    ResourcePreProcessor processor = getDecoratedObject();
    if (processor instanceof ModeAware) {
      ((ModeAware) processor).setMode(mode);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void setUriLocatorFactory(final UriLocatorFactory uriLocatorFactory) {
    ResourcePreProcessor processor = getDecoratedObject();
    if (processor instanceof UriLocatorFactoryAware) {
      ((UriLocatorFactoryAware) processor)
          .setUriLocatorFactory(uriLocatorFactory);
    }
  }
View Full Code Here

TOP

Related Classes of ro.isdc.wro.model.resource.processor.ResourcePreProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.