public interface BeanInformationRepository
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
beanNameFor(java.lang.Object bean)
Retrieves the (cached) bean name (as used in the application context) for the given bean.
|
java.util.Optional<java.lang.reflect.Method> |
factoryMethodFor(java.lang.Object bean)
Retrieves the (cached) factory method of the given bean if available.
|
OngoingAnnotationExtraction |
from(java.lang.Object bean)
Starting point of a fluent clause to find annotations of a given type from the bean.
|
java.util.Optional<java.lang.String> beanNameFor(java.lang.Object bean)
bean - the bean for which to get the namejava.util.Optional<java.lang.reflect.Method> factoryMethodFor(java.lang.Object bean)
bean - the bean for which to retrieve the factory method.OngoingAnnotationExtraction from(java.lang.Object bean)
Optional<AnAnnotation> annotation = from(aBean).getAnnotation(AnAnnotation.class);
Details on the strategy to find the annotations, see OngoingAnnotationExtraction.bean - the bean on which to find annotationsOngoingAnnotationExtraction