Search in sources :

Example 6 with SkinReference

use of org.xwiki.lesscss.internal.skin.SkinReference in project xwiki-platform by xwiki.

the class SkinListener method clearCacheFromSkin.

private void clearCacheFromSkin(XWikiDocument document) {
    SkinReference skinReference = skinReferenceFactory.createReference(document.getDocumentReference());
    lessResourcesCache.clearFromSkin(skinReference);
    colorThemeCache.clearFromSkin(skinReference);
}
Also used : SkinReference(org.xwiki.lesscss.internal.skin.SkinReference)

Aggregations

SkinReference (org.xwiki.lesscss.internal.skin.SkinReference)6 Test (org.junit.Test)3 ColorThemeReference (org.xwiki.lesscss.internal.colortheme.ColorThemeReference)3 LESSCompilerException (org.xwiki.lesscss.compiler.LESSCompilerException)2 LESSResourceReference (org.xwiki.lesscss.resources.LESSResourceReference)2 XWikiContext (com.xpn.xwiki.XWikiContext)1 XWikiDocument (com.xpn.xwiki.doc.XWikiDocument)1 DefaultLESSCompiler (org.xwiki.lesscss.internal.compiler.DefaultLESSCompiler)1 DocumentReference (org.xwiki.model.reference.DocumentReference)1