Package ro.isdc.wro.model.factory

Examples of ro.isdc.wro.model.factory.WroModelFactory


    protected WroManagerFactory newWroManagerFactory() {
      final WroManagerFactory factory = super.newWroManagerFactory();
      return new WroManagerFactoryDecorator(factory) {
        @Override
        protected void onBeforeBuild(final Builder builder) {
          final WroModelFactory modelFactory = WroTestUtils.simpleModelFactory(new WroModel().addGroup(new Group("some")));
          builder.setModelFactory(modelFactory);
        }
      };
    }
View Full Code Here


    processorsFactory.addPreProcessor(new JSMinProcessor());
    return processorsFactory;
  }
  protected WroModelFactory newModelFactory()
  {
    return new WroModelFactory()
    {
      public WroModel create()
      {
        Group dragomeGroup= new Group("dragome");
        dragomeGroup.addResource(Resource.create("/dragome-resources/js/jquery.js", ResourceType.JS)); //TODO extraer constantes
View Full Code Here

    try {
      Context.set(Context.webContext(request, response, wroConfig));
      // TODO: Add a cache for no-dev.
      Injector injector = InjectorBuilder.create(wroManagerFactory).build();
      WroManager manager = wroManagerFactory.create();
      WroModelFactory modelFactory = manager.getModelFactory();
      injector.inject(modelFactory);
      WroModel model = modelFactory.create();
      Map<String, Group> groups = new HashMap<String, Group>();
      for (Group group : model.getGroups()) {
        groups.put(group.getName(), group);
      }
      return groups;
View Full Code Here

TOP

Related Classes of ro.isdc.wro.model.factory.WroModelFactory

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.