Interface Resource

All Known Implementing Classes:
ResourceDescriptor

public interface Resource
Typed Web resource (js, css, bundle).
Since:
7.3
  • Field Details

  • Method Details

    • getName

      String getName()
    • getType

      String getType()
    • getPath

      String getPath()
    • getURI

      String getURI()
    • getTarget

      String getTarget()
      Returns an optional target to push resources to in the page.

      Currently only useful to JSF resources.

      Since:
      7.10
    • getDependencies

      List<String> getDependencies()
      Names of the resource dependencies.
    • getProcessors

      List<String> getProcessors()
      Names of the resource processors, hooking features like flavor replacement on the resource.
    • isShrinkable

      boolean isShrinkable()
      Returns true if resource can be minimized.

      Returns true by default if not specified.