public class BeanMetaDataManager extends Object
Actual retrieval of meta data is delegated to MetaDataProvider
implementations which load meta-data based e.g. based on annotations or XML.
For performance reasons a cache is used which stores all meta data once loaded for repeated retrieval. Upon initialization this cache is populated with meta data provided by the given eager providers. If the cache doesn't contain the meta data for a requested type it will be retrieved on demand using the annotation based provider.
Constructor and Description |
---|
BeanMetaDataManager(ConstraintHelper constraintHelper,
List<MetaDataProvider> optionalMetaDataProviders) |
BeanMetaDataManager(ConstraintHelper constraintHelper,
MetaDataProvider... metaDataProviders) |
public BeanMetaDataManager(ConstraintHelper constraintHelper, MetaDataProvider... metaDataProviders)
public BeanMetaDataManager(ConstraintHelper constraintHelper, List<MetaDataProvider> optionalMetaDataProviders)
constraintHelper
- the constraint helperoptionalMetaDataProviders
- optional meta data provider used on top of the annotation based providerpublic <T> BeanMetaData<T> getBeanMetaData(Class<T> beanClass)
public int numberOfCachedBeanMetaDataInstances()
Copyright © 2018 JBoss by Red Hat. All rights reserved.