public class GenericAutowiredCandidateResolver
extends org.springframework.beans.factory.support.SimpleAutowireCandidateResolver
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor
| Constructor and Description |
|---|
GenericAutowiredCandidateResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected cz.datalite.dao.GenericDAO |
createDAO(org.springframework.beans.factory.config.DependencyDescriptor descriptor) |
Object |
getSuggestedValue(org.springframework.beans.factory.config.DependencyDescriptor descriptor)
Main method to resolve correct DAO bean.
|
protected boolean |
isGenericDAOOfType(cz.datalite.dao.GenericDAO dao,
Type type) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Register this class as autowire candidate resolver.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Get application context.
|
public Object getSuggestedValue(org.springframework.beans.factory.config.DependencyDescriptor descriptor)
getSuggestedValue in interface org.springframework.beans.factory.support.AutowireCandidateResolvergetSuggestedValue in class org.springframework.beans.factory.support.SimpleAutowireCandidateResolverdescriptor - descriptor of required typeprotected cz.datalite.dao.GenericDAO createDAO(org.springframework.beans.factory.config.DependencyDescriptor descriptor)
protected boolean isGenericDAOOfType(cz.datalite.dao.GenericDAO dao,
Type type)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the contextorg.springframework.beans.BeansExceptionpublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessorbeanFactory - factory to useorg.springframework.beans.BeansExceptionCopyright © 2017 DataLite. All rights reserved.