Class ResourceDescriptor

  • All Implemented Interfaces:
    Resource

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

      • target

        public String target
        Target for this resource.

        Currently only useful for JSF resources reallocation in the page.

        Since:
        7.10
      • shrinkable

        public boolean shrinkable
    • Constructor Detail

      • ResourceDescriptor

        public ResourceDescriptor()
    • Method Detail

      • 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
      • 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