com.atlassian.jira.web.less.cache
Class CachingLessCompiler

java.lang.Object
  extended by com.atlassian.jira.web.less.cache.CachingLessCompiler

public class CachingLessCompiler
extends Object

A caching layer above the LessCompiler. Calling the less compiler is expensive. This caches the output of the compiler for less file. The cache is invaludated if the input the the compiler (including any of the dependencies) changes.

Safe for concurrent access.

Since:
v5.0

Constructor Summary
CachingLessCompiler(LessCompiler compiler, JiraHome jiraHome)
           
 
Method Summary
 String compile(String uniquekey, String location, Loader originaLoader, String input, boolean compress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingLessCompiler

public CachingLessCompiler(LessCompiler compiler,
                           JiraHome jiraHome)
                    throws IOException
Throws:
IOException
Method Detail

compile

public String compile(String uniquekey,
                      String location,
                      Loader originaLoader,
                      String input,
                      boolean compress)


Copyright © 2002-2012 Atlassian. All Rights Reserved.