package net.sf.jasperreports.engine;

public class JRVirtualizationHelper {
  private static final ThreadLocal threadVirtualizer = new ThreadLocal();
  
  public static void setThreadVirtualizer(JRVirtualizer virtualizer) {
    threadVirtualizer.set(virtualizer);
  }
  
  public static void clearThreadVirtualizer() {
    threadVirtualizer.set(null);
  }
  
  public static JRVirtualizer getThreadVirtualizer() {
    return threadVirtualizer.get();
  }
}
