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