public class BeanUtil extends Object
| 构造器和说明 |
|---|
BeanUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getProperties(Properties properties,
String key) |
static Object |
getSingleton(org.springframework.beans.factory.BeanFactory registry,
String beanName) |
static void |
registerConfigPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
static void |
registerGlobalMarsValueProperties(org.springframework.core.annotation.AnnotationAttributes attributes,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
org.springframework.core.env.PropertyResolver environment,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
static void |
registerHttpBeanPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
static void |
registerInfrastructureBean(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Class<?> beanClass,
Object... constructorArgs)
Register Infrastructure Bean
|
static void |
registerInfrastructureBeanIfAbsent(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Class<?> beanClass,
Object... constructorArgs)
Register Infrastructure Bean if absent
|
static void |
registerSingleton(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Object singletonObject)
Register an object to be Singleton Bean
|
static Properties |
resolveProperties(Map<?,?> properties,
org.springframework.core.env.PropertyResolver propertyResolver)
Resolve placeholders of properties via specified
PropertyResolver if present |
public static void registerGlobalMarsValueProperties(org.springframework.core.annotation.AnnotationAttributes attributes,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
org.springframework.core.env.PropertyResolver environment,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
public static void registerConfigPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
public static void registerHttpBeanPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
public static Properties resolveProperties(Map<?,?> properties, org.springframework.core.env.PropertyResolver propertyResolver)
PropertyResolver if presentproperties - The propertiespropertyResolver - PropertyResolver instance, for instance, EnvironmentProperties after resolving.public static void registerSingleton(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Object singletonObject)
registry - BeanDefinitionRegistrybeanName - bean namesingletonObject - singleton objectpublic static Object getSingleton(org.springframework.beans.factory.BeanFactory registry, String beanName)
public static void registerInfrastructureBeanIfAbsent(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Class<?> beanClass,
Object... constructorArgs)
registry - BeanDefinitionRegistrybeanName - the name of beanbeanClass - the class of beanconstructorArgs - the arguments of Constructorpublic static void registerInfrastructureBean(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String beanName,
Class<?> beanClass,
Object... constructorArgs)
registry - BeanDefinitionRegistrybeanName - the name of beanbeanClass - the class of beanconstructorArgs - the arguments of Constructorpublic static String getProperties(Properties properties, String key)
Copyright © 2020. All rights reserved.