Package com.gengoai.reflection
Class BeanDescriptorCache
- java.lang.Object
-
- com.gengoai.reflection.BeanDescriptorCache
-
public class BeanDescriptorCache extends Object
A cache of
BeanDescriptor
to speed up performance of usingBeanMap
s. The cache parameters can be specified using the cache spec with propertycom.gengoai.reflection.BeanDescriptorCache.spec
by default it will have a maximum size of 100 and entries will expire after 10 minutes of write- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDescriptor
get(Class<?> clazz)
Gets aBeanDescriptor
for aClass
static BeanDescriptorCache
getInstance()
-
-
-
Method Detail
-
getInstance
public static BeanDescriptorCache getInstance()
- Returns:
- An instance of the
BeanDescriptorCache
.
-
get
public BeanDescriptor get(Class<?> clazz)
Gets aBeanDescriptor
for aClass
- Parameters:
clazz
- The class for which aBeanDescriptor
is to be created.- Returns:
- A
BeanDescriptor
for the given class
-
-