public interface RuntimeSpringConfiguration
| Modifier and Type | Method and Description |
|---|---|
BeanConfiguration |
addAbstractBean(java.lang.String name)
\
Adds an abstract bean definition to the bean factory and returns the BeanConfiguration object.
|
void |
addAlias(java.lang.String alias,
java.lang.String beanName)
Adds an alias to a given bean name.
|
void |
addBeanConfiguration(java.lang.String beanName,
BeanConfiguration beanConfiguration)
Adds a bean configuration to the list of beans to be created.
|
void |
addBeanDefinition(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition bd)
Adds a Spring BeanDefinition.
|
BeanConfiguration |
addPrototypeBean(java.lang.String name)
Adds an empty prototype bean configuration.
|
BeanConfiguration |
addPrototypeBean(java.lang.String name,
java.lang.Class clazz)
Adds a prototype bean definition.
|
BeanConfiguration |
addSingletonBean(java.lang.String name)
Adds an empty singleton bean configuration.
|
BeanConfiguration |
addSingletonBean(java.lang.String name,
java.lang.Class clazz)
Adds a singleton bean definition.
|
BeanConfiguration |
addSingletonBean(java.lang.String name,
java.lang.Class clazz,
java.util.Collection args)
Creates a new singleton bean and adds it to the list of bean references.
|
boolean |
containsBean(java.lang.String name)
Returns whether the runtime spring config contains the specified bean.
|
org.springframework.beans.factory.support.AbstractBeanDefinition |
createBeanDefinition(java.lang.String name)
Creates and returns the BeanDefinition that is regsitered within the given name or returns null.
|
BeanConfiguration |
createPrototypeBean(java.lang.String name)
Creates a new prototype bean configuration.
|
BeanConfiguration |
createSingletonBean(java.lang.Class clazz)
Creates a singleton bean configuration.
|
BeanConfiguration |
createSingletonBean(java.lang.Class clazz,
java.util.Collection constructorArguments)
Creates a singleton bean configuration.
|
BeanConfiguration |
createSingletonBean(java.lang.String name)
Creates a new singleton bean configuration.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Retrieves the application context from the current state.
|
BeanConfiguration |
getBeanConfig(java.lang.String name)
Returns the BeanConfiguration for the specified name.
|
org.springframework.beans.factory.config.BeanDefinition |
getBeanDefinition(java.lang.String beanName)
Obtains a BeanDefinition instance for the given beanName.
|
java.util.List<java.lang.String> |
getBeanNames() |
org.springframework.context.ApplicationContext |
getUnrefreshedApplicationContext() |
void |
registerBeansWithConfig(RuntimeSpringConfiguration targetSpringConfig)
Registers the beans held within this RuntimeSpringConfiguration instance with the given RuntimeSpringConfiguration.
|
void |
registerBeansWithContext(org.springframework.context.support.GenericApplicationContext applicationContext)
Registers the beans held within this RuntimeSpringConfiguration instance with the given ApplicationContext.
|
void |
registerBeansWithRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Registers the beans held within this RuntimeSpringConfiguration instance with the given BeanDefinitionRegistry.
|
void |
registerPostProcessor(org.springframework.beans.factory.config.BeanFactoryPostProcessor processor)
Registers a bean factory post processor with the context.
|
void |
setBeanFactory(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Sets the BeanFactory implementation to use.
|
BeanConfiguration addSingletonBean(java.lang.String name, java.lang.Class clazz)
name - The name of the beanclazz - The class of the beanorg.springframework.context.ApplicationContext getUnrefreshedApplicationContext()
BeanConfiguration addPrototypeBean(java.lang.String name, java.lang.Class clazz)
name - The name of the beanclazz - The class of the beanorg.springframework.context.ApplicationContext getApplicationContext()
BeanConfiguration addSingletonBean(java.lang.String name)
name - The name of the singleton beanBeanConfiguration addPrototypeBean(java.lang.String name)
name - The name of the prototype beanBeanConfiguration createSingletonBean(java.lang.Class clazz)
clazz - BeanConfiguration addSingletonBean(java.lang.String name, java.lang.Class clazz, java.util.Collection args)
name - The name of the beanclazz - The class of the beanargs - The constructor arguments of the beanBeanConfiguration createSingletonBean(java.lang.Class clazz, java.util.Collection constructorArguments)
clazz - The bean classconstructorArguments - The constructor argumentsBeanConfiguration createPrototypeBean(java.lang.String name)
name - The bean nameBeanConfiguration createSingletonBean(java.lang.String name)
name - The bean namevoid addBeanConfiguration(java.lang.String beanName,
BeanConfiguration beanConfiguration)
beanName - The name of the bean in the contextbeanConfiguration - The BeanConfiguration instancevoid addBeanDefinition(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition bd)
name - The name of the beanbd - The BeanDefinition instanceboolean containsBean(java.lang.String name)
name - The bean nameBeanConfiguration getBeanConfig(java.lang.String name)
name - The name of the bean configurationorg.springframework.beans.factory.support.AbstractBeanDefinition createBeanDefinition(java.lang.String name)
name - The name of the bean definitionvoid registerPostProcessor(org.springframework.beans.factory.config.BeanFactoryPostProcessor processor)
processor - The BeanFactoryPostProcessor instancejava.util.List<java.lang.String> getBeanNames()
void registerBeansWithContext(org.springframework.context.support.GenericApplicationContext applicationContext)
applicationContext - The ApplicationContext instancevoid registerBeansWithRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registry - The BeanDefinitionRegistry instancevoid registerBeansWithConfig(RuntimeSpringConfiguration targetSpringConfig)
targetSpringConfig - The RuntimeSpringConfiguration instanceBeanConfiguration addAbstractBean(java.lang.String name)
name - The name of the beanvoid addAlias(java.lang.String alias,
java.lang.String beanName)
alias - The aliasbeanName - The beanorg.springframework.beans.factory.config.BeanDefinition getBeanDefinition(java.lang.String beanName)
beanName - The beanNamevoid setBeanFactory(org.springframework.beans.factory.ListableBeanFactory beanFactory)
beanFactory - The BeanFactory implementation