public class CachingParanamer extends java.lang.Object implements Paranamer
Modifier and Type | Class and Description |
---|---|
static class |
CachingParanamer.WithoutWeakReferences
This implementation has a better concurrent design (ConcurrentHashMap) which
has a better strategy to implement concurrency: segments instead of synchronized.
|
EMPTY_NAMES
Constructor and Description |
---|
CachingParanamer(Paranamer delegate)
Specify a Paranamer instance to delegates to.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
lookupParameterNames(java.lang.reflect.AccessibleObject methodOrConstructor)
Lookup the parameter names of a given method.
|
java.lang.String[] |
lookupParameterNames(java.lang.reflect.AccessibleObject methodOrCtor,
boolean throwExceptionIfMissing)
Lookup the parameter names of a given method.
|
protected java.util.Map<java.lang.reflect.AccessibleObject,java.lang.String[]> |
makeMethodCache() |
public CachingParanamer(Paranamer delegate)
delegate
- the paranamer instance to useprotected java.util.Map<java.lang.reflect.AccessibleObject,java.lang.String[]> makeMethodCache()
public java.lang.String[] lookupParameterNames(java.lang.reflect.AccessibleObject methodOrConstructor)
Paranamer
lookupParameterNames
in interface Paranamer
methodOrConstructor
- the Method
or Constructor
for which the parameter names
are looked up.public java.lang.String[] lookupParameterNames(java.lang.reflect.AccessibleObject methodOrCtor, boolean throwExceptionIfMissing)
Paranamer
lookupParameterNames
in interface Paranamer
methodOrCtor
- the Method
or Constructor
for which the parameter names
are looked up.throwExceptionIfMissing
- whether to throw an exception if no Paranamer data found (versus return null).Copyright © 2005-2021 Potix Corporation. All Rights Reserved.