org.springframework.context.annotation.ConfigurationClassEnhancer.EnhancedConfiguration Java Examples

The following examples show how to use org.springframework.context.annotation.ConfigurationClassEnhancer.EnhancedConfiguration. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigurationClassPostProcessor.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Override
public PropertyValues postProcessProperties(@Nullable PropertyValues pvs, Object bean, String beanName) {
	// Inject the BeanFactory before AutowiredAnnotationBeanPostProcessor's
	// postProcessProperties method attempts to autowire other configuration beans.
	if (bean instanceof EnhancedConfiguration) {
		((EnhancedConfiguration) bean).setBeanFactory(this.beanFactory);
	}
	return pvs;
}
 
Example #2
Source File: ConfigurationClassPostProcessor.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Override
public PropertyValues postProcessProperties(@Nullable PropertyValues pvs, Object bean, String beanName) {
	// Inject the BeanFactory before AutowiredAnnotationBeanPostProcessor's
	// postProcessProperties method attempts to autowire other configuration beans.
	if (bean instanceof EnhancedConfiguration) {
		((EnhancedConfiguration) bean).setBeanFactory(this.beanFactory);
	}
	return pvs;
}
 
Example #3
Source File: ConfigurationClassPostProcessor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public PropertyValues postProcessPropertyValues(
		PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) {

	// Inject the BeanFactory before AutowiredAnnotationBeanPostProcessor's
	// postProcessPropertyValues method attempts to autowire other configuration beans.
	if (bean instanceof EnhancedConfiguration) {
		((EnhancedConfiguration) bean).setBeanFactory(this.beanFactory);
	}
	return pvs;
}
 
Example #4
Source File: ConfigurationClassPostProcessor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
public PropertyValues postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) {
	// Inject the BeanFactory before AutowiredAnnotationBeanPostProcessor's
	// postProcessPropertyValues method attempts to auto-wire other configuration beans.
	if (bean instanceof EnhancedConfiguration) {
		((EnhancedConfiguration) bean).setBeanFactory(this.beanFactory);
	}
	return pvs;
}