public class BeanWiringObserver extends Object implements BeanContextLifecycleObserver
BeanContext
Observer performing bean wiring.Constructor and Description |
---|
BeanWiringObserver(BeanId watchingBean,
BeanInstancePopulator populator) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isMatchingBean(Object bean,
Class<?> type,
Class<? extends Annotation> annotation) |
void |
onBeanLifecycleEvent(BeanContextLifecycleEvent event)
Bean lifecycle event method.
|
BeanWiringObserver |
watchedBeanAnnotation(Class<? extends Annotation> watchedBeanAnnotation) |
BeanWiringObserver |
watchedBeanId(BeanId watchedBeanId) |
BeanWiringObserver |
watchedBeanType(Class watchedBeanType) |
public BeanWiringObserver(BeanId watchingBean, BeanInstancePopulator populator)
public BeanWiringObserver watchedBeanId(BeanId watchedBeanId)
public BeanWiringObserver watchedBeanType(Class watchedBeanType)
public BeanWiringObserver watchedBeanAnnotation(Class<? extends Annotation> watchedBeanAnnotation)
public void onBeanLifecycleEvent(BeanContextLifecycleEvent event)
BeanContextLifecycleObserver
onBeanLifecycleEvent
in interface BeanContextLifecycleObserver
event
- The event.public static boolean isMatchingBean(Object bean, Class<?> type, Class<? extends Annotation> annotation)
Copyright © 2020. All rights reserved.