class WebJarsUtil extends Logging
WebJars Util
Config:
webjars.filter-expression 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.
webjars.cdn-url overrides the default CDN url (https://cdn.jsdelivr.net/webjars)
webjars.use-cdn toggles the CDN
- Annotations
- @Singleton()
- Alphabetic
- By Inheritance
- WebJarsUtil
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new WebJarsUtil(configuration: Configuration, environment: Environment)
- Annotations
- @Inject()
Type Members
- class WebJarAsset extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val cdnUrl: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fullPath(webjar: String, path: String): WebJarAsset
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 located WebJarAsset
Calling fullPath("react", "react.js") will return a WebJarAsset because react.js exists at the root of the WebJar
Example: - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def locate(webJar: String, path: String): WebJarAsset
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 located WebJarAsset
- def locate(file: String): WebJarAsset
Locate a file in a WebJar
Locate a file in a WebJar
- file
the file or partial path to find
- returns
the located WebJarAsset
Passing in
jquery.min.jswill return a WebJarAsset, assuming the jquery WebJar version 1.8.2 is on the classpath
Example: - val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def requireJs(mainUrl: Call): Html
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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val useCdn: Boolean
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- lazy val webJarFilterExpr: String
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated