Class NuxeoWroModelFactory

java.lang.Object
org.nuxeo.ecm.web.resources.wro.factory.NuxeoWroModelFactory
All Implemented Interfaces:
ro.isdc.wro.model.factory.WroModelFactory, ro.isdc.wro.util.ObjectFactory<ro.isdc.wro.model.WroModel>
Direct Known Subclasses:
NuxeoWroPageModelFactory

public class NuxeoWroModelFactory extends Object implements ro.isdc.wro.model.factory.WroModelFactory
Generates a WroModel using contributions to the WebResourceManager service.

Maps ResourceBundle elements to wro groups, and map their ordered resources (with resolved dependencies) to wro resources.

Since:
7.3
  • Constructor Details

    • NuxeoWroModelFactory

      public NuxeoWroModelFactory()
  • Method Details

    • create

      public ro.isdc.wro.model.WroModel create()
      Specified by:
      create in interface ro.isdc.wro.util.ObjectFactory<ro.isdc.wro.model.WroModel>
    • toWroResource

      protected ro.isdc.wro.model.resource.Resource toWroResource(String bundle, Resource resource)
    • toWroResourceType

      protected ro.isdc.wro.model.resource.ResourceType toWroResourceType(String type)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface ro.isdc.wro.model.factory.WroModelFactory