BeanDescription instances. All the cache users which use
the same instance of BeanDescriptionCache can profit from each others cached
bean descriptions.
The cache is not thread-safe and should not be shared across configurator instances.
| Modifier and Type | Field and Description |
|---|---|
| private BeanDescriptionFactory | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BeanDescription | Returns: a bean description for the given class.to get a bean description for. clazz)Returned bean descriptions are hold in a cache. |
| private BeanDescriptionFactory |
| beanDescriptionFactory | back to summary |
|---|---|
| private BeanDescriptionFactory beanDescriptionFactory | |
| classToBeanDescription | back to summary |
|---|---|
| private Map<Class<?>, BeanDescription> classToBeanDescription | |
| BeanDescriptionCache | back to summary |
|---|---|
| public BeanDescriptionCache(Context context) | |
| getBeanDescription | back to summary |
|---|---|
| public BeanDescription getBeanDescription(Class<?> clazz) Returned bean descriptions are hold in a cache. If the cache does not contain a description for a given class, a new bean description is created and put in the cache, before it is returned.
| |
| getBeanDescriptionFactory | back to summary |
|---|---|
| private BeanDescriptionFactory getBeanDescriptionFactory() | |