Class ResourceDescriptor

java.lang.Object
org.nuxeo.ecm.web.resources.core.ResourceDescriptor
All Implemented Interfaces:
Resource

public class ResourceDescriptor extends Object implements Resource
Since:
7.3
  • Field Details

    • name

      public String name
    • type

      public String type
    • target

      public String target
      Target for this resource.

      Currently only useful for JSF resources reallocation in the page.

      Since:
      7.10
    • path

      public String path
    • dependencies

      public List<String> dependencies
    • processors

      public List<String> processors
    • shrinkable

      public boolean shrinkable
    • uri

      protected String uri
  • Constructor Details

    • ResourceDescriptor

      public ResourceDescriptor()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Resource
    • getType

      public String getType()
      Specified by:
      getType in interface Resource
    • getDependencies

      public List<String> getDependencies()
      Description copied from interface: Resource
      Names of the resource dependencies.
      Specified by:
      getDependencies in interface Resource
    • getProcessors

      public List<String> getProcessors()
      Description copied from interface: Resource
      Names of the resource processors, hooking features like flavor replacement on the resource.
      Specified by:
      getProcessors in interface Resource
    • getPath

      public String getPath()
      Specified by:
      getPath in interface Resource
    • getURI

      public String getURI()
      Specified by:
      getURI in interface Resource
    • isShrinkable

      public boolean isShrinkable()
      Description copied from interface: Resource
      Returns true if resource can be minimized.

      Returns true by default if not specified.

      Specified by:
      isShrinkable in interface Resource
    • setURI

      public void setURI(String uri)
    • setName

      public void setName(String name)
      Since:
      7.4
    • setType

      public void setType(String type)
      Since:
      7.4
    • setPath

      public void setPath(String path)
      Since:
      7.4
    • setDependencies

      public void setDependencies(List<String> dependencies)
      Since:
      7.4
    • setProcessors

      public void setProcessors(List<String> processors)
      Since:
      7.4
    • setShrinkable

      public void setShrinkable(boolean shrinkable)
      Since:
      7.4
    • setUri

      public void setUri(String uri)
      Since:
      7.4
    • getTarget

      public String getTarget()
      Description copied from interface: Resource
      Returns an optional target to push resources to in the page.

      Currently only useful to JSF resources.

      Specified by:
      getTarget in interface Resource
      Since:
      7.10
    • setTarget

      public void setTarget(String target)
      Since:
      7.10