@@ -0,0 +1,2502 @@
+/*%0A * Copyright (c) 2009.%0A */%0Apackage ro.isdc.wro.manager.factory;%0A%0Aimport ro.isdc.wro.config.Context;%0Aimport ro.isdc.wro.manager.WroManager;%0Aimport ro.isdc.wro.model.factory.WroModelFactory;%0Aimport ro.isdc.wro.model.factory.XmlModelFactory;%0Aimport ro.isdc.wro.model.group.processor.GroupsProcessor;%0Aimport ro.isdc.wro.model.group.processor.GroupsProcessorImpl;%0Aimport ro.isdc.wro.model.resource.factory.UriLocatorFactory;%0Aimport ro.isdc.wro.model.resource.factory.UriLocatorFactoryImpl;%0Aimport ro.isdc.wro.model.resource.locator.ClasspathUriLocator;%0Aimport ro.isdc.wro.model.resource.locator.ServletContextUriLocator;%0Aimport ro.isdc.wro.model.resource.locator.UrlUriLocator;%0A%0A/**%0A * This factory will create a WroManager which is able to run itself outside of%0A * a webContainer.%0A *%0A * @author Alex Objelean%0A * @created Created on Nov 3, 2008%0A */%0Apublic class StandaloneWroManagerFactory extends BaseWroManagerFactory %7B%0A  /**%0A   * %7B@inheritDoc%7D%0A   */%0A  @Override%0A  protected void onBeforeCreate() %7B%0A    Context.set(Context.standaloneContext());%0A  %7D%0A%0A  /**%0A   * %7B@inheritDoc%7D%0A   */%0A  @Override%0A  protected WroModelFactory newModelFactory() %7B%0A    return new XmlModelFactory();%0A  %7D%0A%0A  /**%0A   * %7B@inheritDoc%7D%0A   */%0A  @Override%0A  protected WroManager newManager() %7B%0A    return new WroManager() %7B%0A      /**%0A       * Just return false, without checking the request headers.%0A       */%0A      @Override%0A      protected boolean isGzipSupported() %7B%0A        return false;%0A      %7D%0A    %7D;%0A  %7D%0A%0A  /**%0A   * Creates a default implementation of %7B@link GroupsProcessor%7D without any processors set.%0A   */%0A  @Override%0A  protected GroupsProcessor newGroupsProcessor() %7B%0A    final GroupsProcessor groupsProcessor = new GroupsProcessorImpl();%0A    groupsProcessor.setUriLocatorFactory(newUriLocatorFactory());%0A    return groupsProcessor;%0A  %7D%0A%0A  /**%0A   * %7B@inheritDoc%7D%0A   */%0A  private UriLocatorFactory newUriLocatorFactory() %7B%0A    final UriLocatorFactoryImpl factory = new UriLocatorFactoryImpl();%0A    // The order is important.%0A    factory.addUriLocator(newServletContextUriLocator());%0A    factory.addUriLocator(new ClasspathUriLocator());%0A    factory.addUriLocator(new UrlUriLocator());%0A    return factory;%0A  %7D%0A%0A%0A  /**%0A   * @return %7B@link ServletContextUriLocator%7D or a derivate locator which will be responsible for locating resources%0A   *         starting with '/' character. Ex: /static/resource.js%0A   */%0A  protected ServletContextUriLocator newServletContextUriLocator() %7B%0A    return new ServletContextUriLocator();%0A  %7D%0A%7D%0A

add missing class