public class BeanDefinitionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyIfNotNull(org.springframework.beans.factory.config.BeanDefinition definition,
String propertyName,
Object propertyValue)
Adds the property to the bean definition if the values it not empty
|
static org.springframework.beans.factory.config.BeanDefinition |
createBeanDefinitionFromOriginal(org.springframework.context.ApplicationContext applicationContext,
String beanName)
Creates a bean definition for the specified bean name.
|
public static org.springframework.beans.factory.config.BeanDefinition createBeanDefinitionFromOriginal(org.springframework.context.ApplicationContext applicationContext, String beanName)
applicationContext
- the current application contextbeanName
- public static void addPropertyIfNotNull(org.springframework.beans.factory.config.BeanDefinition definition, String propertyName, Object propertyValue)
definition
- the bean definitionpropertyName
- the property namepropertyValue
- the property valueCopyright © 2019 CrafterCMS. All rights reserved.