public class EternallyCachingSelectorFactory extends Object implements SelectorFactory
SelectorFactory
implementation which indirects to a real
implementation and caches its return values eternally. Do not use in
situations where the set of input expressions can be unbounded (e.g.
user-provided) as this will lead to unbounded cache growth.
A better implementation would use a LRU cache or similar, but I cbf.
Constructor and Description |
---|
EternallyCachingSelectorFactory(SelectorFactory real) |
public EternallyCachingSelectorFactory(SelectorFactory real)
public Selector<?> get(String expression)
get
in interface SelectorFactory
Copyright © 2009-2013. All Rights Reserved.