Package org.webjars
Class WebJarVersionLocator
java.lang.Object
org.webjars.WebJarVersionLocator
Locate WebJar version. The class is thread safe.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WEBJARS_PATH_PREFIX
The path to where webjar resources live.- See Also:
-
-
Constructor Details
-
WebJarVersionLocator
public WebJarVersionLocator()
-
-
Method Details
-
fullPath
- Parameters:
webJarName- The name of the WebJar, i.e. bootstrapexactPath- The path to the file within the WebJar, i.e. js/bootstrap.js- Returns:
- The full path to the file in the classpath including the version, i.e. META-INF/resources/webjars/bootstrap/3.1.1/js/bootstrap.js
-
path
- Parameters:
webJarName- The name of the WebJar, i.e. bootstrapexactPath- The path to the file within the WebJar, i.e. js/bootstrap.js- Returns:
- The path to the file in the standard WebJar classpath location, including the version, i.e. bootstrap/3.1.1/js/bootstrap.js
-
version
- Parameters:
webJarName- The name of the WebJar, i.e. bootstrap- Returns:
- The version of the WebJar, i.e 3.1.1
-