public class SpringBootBeanContainer extends Object implements BeanContainer<org.springframework.context.ApplicationContext>
Constructor and Description |
---|
SpringBootBeanContainer() |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext() |
<T> T |
getBean(Class<T> clazz)
获取指定类型的Bean
|
<T> T |
getBean(String name)
获取指定名称的Bean
|
<T> T |
getBean(String name,
Class<T> clazz)
获取指定类型指定名称的Bean
|
org.springframework.context.ApplicationContext |
getBeanContainerPrototype()
返回原生的Bean窗口类型
|
<T> Collection<T> |
getBeans(Class<T> type)
返回指定类型的bean列表
|
BeanContainer<?> |
getSubBeanContainer(ClassLoader loader) |
BeanContainer<?> |
getSubBeanContainer(List<FileObject> files,
ClassLoader loader)
获取子容器
|
Map<ClassLoader,BeanContainer<?>> |
getSubBeanContainers()
返回子窗口列表
|
void |
removeSubBeanContainer(ClassLoader loader) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setParent(BeanContainer<?> container) |
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public org.springframework.context.ApplicationContext getBeanContainerPrototype()
BeanContainer
getBeanContainerPrototype
in interface BeanContainer<org.springframework.context.ApplicationContext>
public BeanContainer<?> getSubBeanContainer(List<FileObject> files, ClassLoader loader)
BeanContainer
getSubBeanContainer
in interface BeanContainer<org.springframework.context.ApplicationContext>
public BeanContainer<?> getSubBeanContainer(ClassLoader loader)
getSubBeanContainer
in interface BeanContainer<org.springframework.context.ApplicationContext>
public void removeSubBeanContainer(ClassLoader loader)
removeSubBeanContainer
in interface BeanContainer<org.springframework.context.ApplicationContext>
public void setParent(BeanContainer<?> container)
setParent
in interface BeanContainer<org.springframework.context.ApplicationContext>
public Map<ClassLoader,BeanContainer<?>> getSubBeanContainers()
BeanContainer
getSubBeanContainers
in interface BeanContainer<org.springframework.context.ApplicationContext>
public <T> Collection<T> getBeans(Class<T> type)
BeanContainer
getBeans
in interface BeanContainer<org.springframework.context.ApplicationContext>
public <T> T getBean(String name)
BeanContainer
getBean
in interface BeanContainer<org.springframework.context.ApplicationContext>
public <T> T getBean(Class<T> clazz)
BeanContainer
getBean
in interface BeanContainer<org.springframework.context.ApplicationContext>
public <T> T getBean(String name, Class<T> clazz)
BeanContainer
getBean
in interface BeanContainer<org.springframework.context.ApplicationContext>
Copyright © 2006–2018 TinyGroup. All rights reserved.