public class FactoryBeanTypePredictingBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter implements BeanFactoryAware, PriorityOrdered
InstantiationAwareBeanPostProcessorAdapter to predict the bean type for FactoryBean implementations
by interpreting a configured property of the BeanDefinition as type to be created eventually.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
FactoryBeanTypePredictingBeanPostProcessor(Class<?> factoryBeanType,
String... properties)
Creates a new
FactoryBeanTypePredictingBeanPostProcessor predicting the type created by the
FactoryBean of the given type by inspecting the BeanDefinition and considering the value for the
given property as type to be created eventually. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
Class<?> |
predictBeanType(Class<?> beanClass,
String beanName) |
void |
setBeanFactory(BeanFactory beanFactory) |
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValuespublic FactoryBeanTypePredictingBeanPostProcessor(Class<?> factoryBeanType, String... properties)
FactoryBeanTypePredictingBeanPostProcessor predicting the type created by the
FactoryBean of the given type by inspecting the BeanDefinition and considering the value for the
given property as type to be created eventually.factoryBeanType - must not be null.properties - must not be null or empty.public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwarepublic Class<?> predictBeanType(Class<?> beanClass, String beanName)
predictBeanType in interface SmartInstantiationAwareBeanPostProcessorpredictBeanType in class InstantiationAwareBeanPostProcessorAdapterCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.