@Incubating public interface BeanMetaDataClassNormalizer
In the case of the predefined scope validator factory, we have to register all the classes that will ever be validated. To validate method calls, frameworks usually generate proxies to intercept the calls. Such proxies might be hard to register in the predefined scope validator factory as they are generated code.
This contract allows to normalize the class before obtaining the metadata from the
BeanMetaDataManager
so that we only have to register the original bean class and not the proxy
class.
Apart from avoiding the need to register the class, it also avoids generating unnecessary metadata for the proxy classes.
Modifier and Type | Method and Description |
---|---|
<T> Class<? super T> |
normalize(Class<T> beanClass)
Normalizes the provided class as the key used to get the bean metadata from the
BeanMetaDataManager . |
Copyright © 2021 JBoss by Red Hat. All rights reserved.