public class LessCacheManager extends Object
A class that manages the generated CSS content for Less resources.
| Constructor and Description |
|---|
LessCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
static LessCacheManager |
get() |
String |
getCss(com.github.sommeri.less4j.LessSource.URLSource lessSource)
Returns the generated CSS content per Less resource.
|
org.apache.wicket.util.time.Time |
getLastModifiedTime(com.github.sommeri.less4j.LessSource.URLSource lessSource) |
com.github.sommeri.less4j.LessSource.URLSource |
getLessSource(URL lessUrl,
String scopeClass)
Returns the LessSource.URLSource per URL.
|
void |
install(org.apache.wicket.Application app)
Registers this instance as the one which should be used in this application.
|
public com.github.sommeri.less4j.LessSource.URLSource getLessSource(URL lessUrl, String scopeClass)
Returns the LessSource.URLSource per URL. If there is no entry in the cache then it will be automatically registered
lessUrl - the URL to the Less resource filescopeClass - The name of the class used as a scope to resolve “package!” dependencies/importspublic String getCss(com.github.sommeri.less4j.LessSource.URLSource lessSource)
Returns the generated CSS content per Less resource. If there is no cached content or the root LessSource or any of its imported resources is updated then the CSS content is (re-)generated
lessSource - The root LessSource for which to load its CSS representationpublic org.apache.wicket.util.time.Time getLastModifiedTime(com.github.sommeri.less4j.LessSource.URLSource lessSource)
lessSource - The root LessSource which last modification time should be calculatedpublic void install(org.apache.wicket.Application app)
Registers this instance as the one which should be used in this application.
app - The application used as a scopeget()public static LessCacheManager get()
Copyright © 2011–2014 AgileCoders. All rights reserved.