264265266267268269270271272273274
} catch (Exception e) { if (failureCache == null) { failureCache = new LFUMap(5); } failureCache.put(value, Boolean.TRUE); ContentType.logger.warn("Failed to load content using value " + value, e); } return null;
143144145146147148149150
public StyleCache(final boolean omitPadding) { this.lookupKey = new CacheKey(); this.omitPadding = omitPadding; this.cache = new LFUMap(100); this.nonPaddingWrapperStyleSheet = new NonPaddingWrapperStyleSheet(); }
81828384858687
/** * Default Constructor. */ public StyleExpressionsEvaluator() { expressionsCache = new LFUMap(500); }
290291292293294295296297
} public Expression getInstance() { final StyleExpressionsEvaluator eval = (StyleExpressionsEvaluator) super.getInstance(); eval.expressionsCache = new LFUMap(500); return eval; }
85868788899091
/** * Default Constructor. */ public AttributeExpressionsEvaluator() { expressionsCache = new LFUMap(500); }
338339340341342343344345
public Expression getInstance() { final AttributeExpressionsEvaluator eval = (AttributeExpressionsEvaluator) super.getInstance(); eval.expressionsCache = new LFUMap(500); return eval; }
70717273747576
private LFUMap expressionsCache; public WizardItemHideFunction() { expressionsCache = new LFUMap(500); }
199200201202203204205206
public Expression getInstance() { final WizardItemHideFunction eval = (WizardItemHideFunction) super.getInstance(); eval.expressionsCache = new LFUMap(500); return eval; }
120121122123124125126
private LFUMap cache; public TextCache(final int maxEntries) { cache = new LFUMap(maxEntries); }
106107108109110111112
private transient LFUMap expressionsCache; private Boolean legacyMode; public MetaDataStyleEvaluator() { expressionsCache = new LFUMap(500); }