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()
- Alphabetic
- By Inheritance
- WebJarsUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
WebJarsUtil(configuration: Configuration, environment: Environment)
- Annotations
- @Inject()
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
- val WebjarFilterExprDefault: String
- val WebjarFilterExprProp: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fullPath(webjar: String, path: String): String
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)
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
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
locate(webJar: String, path: String): String
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)
-
def
locate(file: String): String
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)
Passing in
jquery.min.jswill returnjquery/1.8.2/jquery.min.jsassuming the jquery WebJar version 1.8.2 is on the classpath
Example: -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
requireJs(mainUrl: Call): String
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
-
def
url(webJar: String, path: String): Call
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
-
def
url(path: String): Call
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )