Class CachingParanamer.WithoutWeakReferences
java.lang.Object
com.thoughtworks.paranamer.CachingParanamer
com.thoughtworks.paranamer.CachingParanamer.WithoutWeakReferences
- All Implemented Interfaces:
Paranamer
- Enclosing class:
CachingParanamer
This implementation has a better concurrent design (ConcurrentHashMap) which
has a better strategy to implement concurrency: segments instead of synchronized.
It also drops the underlying WeakHashMap implementation as that can't work with
ConcurrentHashMap with some risk of growing permgen for a certain class of usage.
So instead of wrapping via 'Collections.synchronizedMap(new WeakHashMap())' we now
have 'new ConcurrentHashMap()'
-
Nested Class Summary
Nested classes/interfaces inherited from class CachingParanamer
CachingParanamer.WithoutWeakReferences -
Field Summary
Fields inherited from class CachingParanamer
__PARANAMER_DATAFields inherited from interface Paranamer
EMPTY_NAMES -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CachingParanamer
lookupParameterNames, lookupParameterNames
-
Constructor Details
-
WithoutWeakReferences
public WithoutWeakReferences() -
WithoutWeakReferences
-
-
Method Details
-
makeMethodCache
- Overrides:
makeMethodCachein classCachingParanamer
-