Class

org.webjars.play

WebJarsUtil

Related Doc: package play

Permalink

class WebJarsUtil extends AnyRef

Resolves WebJar paths

org.webjars.play.webJarFilterExpr can be used to declare a regex for the files that should be looked for when searching within WebJars. By default all files are searched for.

Annotations
@Singleton()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebJarsUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebJarsUtil(configuration: Configuration, environment: Environment)

    Permalink
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val WebjarFilterExprDefault: String

    Permalink
  5. val WebjarFilterExprProp: String

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fullPath(webjar: String, path: String): String

    Permalink

    Get the full path to a file in a WebJar without validating that the file actually exists

    Get the full path to a file in a WebJar without validating that the file actually exists

    webjar

    the WebJar artifactId

    path

    the full path to a file in the WebJar

    returns

    the path to the file (sans-the webjars prefix)

    Example:
    1. Calling fullPath("react", "react.js") will return the full path to the file in the WebJar because react.js exists at the root of the WebJar

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def locate(webJar: String, path: String): String

    Permalink

    Locate a file in a WebJar

    Locate a file in a WebJar

    webJar

    the WebJar artifactId

    path

    the file or partial path to find

    returns

    the path to the file (sans-the webjars prefix)

  16. def locate(file: String): String

    Permalink

    Locate a file in a WebJar

    Locate a file in a WebJar

    file

    the file or partial path to find

    returns

    the path to the file (sans-the webjars prefix)

    Example:
    1. Passing in jquery.min.js will return jquery/1.8.2/jquery.min.js assuming the jquery WebJar version 1.8.2 is on the classpath

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def requireJs(mainUrl: Call): String

    Permalink

    Generates the RequireJS config and main script tags

    Generates the RequireJS config and main script tags

    mainUrl

    The reverse route of the main app

    returns

    The RequireJS config and main script tags

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def url(webJar: String, path: String): Call

    Permalink

    Locates a WebJar from a partial path and returns the reverse route

    Locates a WebJar from a partial path and returns the reverse route

    webJar

    The artifact name of the WebJar

    path

    The partial path of a file in a WebJar

    returns

    The reverse route to the WebJar asset

  24. def url(path: String): Call

    Permalink

    Locates a WebJar from a partial path and returns the reverse route

    Locates a WebJar from a partial path and returns the reverse route

    path

    The partial path of a file in a WebJar

    returns

    The reverse route to the WebJar asset

  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped