Searched refs:useCache (Results 1 – 8 of 8) sorted by relevance
45 private boolean useCache = true; field in AbstractClassGenerator119 public void setUseCache(boolean useCache) {120 this.useCache = useCache;127 return useCache;199 } else if (useCache) {223 if (useCache) {
40 public ObjenesisStd(boolean useCache) { in ObjenesisStd() argument41 super(new StdInstantiatorStrategy(), useCache); in ObjenesisStd()
40 public ObjenesisSerializer(boolean useCache) { in ObjenesisSerializer() argument41 super(new SerializingInstantiatorStrategy(), useCache); in ObjenesisSerializer()
53 public ObjenesisBase(InstantiatorStrategy strategy, boolean useCache) { in ObjenesisBase() argument58 this.cache = useCache ? new HashMap() : null; in ObjenesisBase()
512 protected synchronized CtClass get0(String classname, boolean useCache) in get0() argument516 if (useCache) { in get0()523 clazz = parent.get0(classname, useCache); in get0()528 clazz = createCtClass(classname, useCache); in get0()531 if (useCache) in get0()538 clazz = parent.get0(classname, useCache); in get0()550 protected CtClass createCtClass(String classname, boolean useCache) { in createCtClass() argument557 if ((!useCache || getCached(base) == null) && find(base) == null) in createCtClass()
42 ProxyFactory.useCache = false; in testCacheGC()53 ProxyFactory.useCache = true; in testCacheGC()
44 System.out.println("ProxyFactory.useCache = " + ProxyFactory.useCache); in testFactoryCompatibility()
216 public static volatile boolean useCache = true; field in ProxyFactory257 public void setUseCache(boolean useCache) in setUseCache() argument261 if (handler != null && useCache) { in setUseCache()264 factoryUseCache = useCache; in setUseCache()342 factoryUseCache = useCache; in ProxyFactory()