public class SpringBeanContainer extends Object implements BeanContainer<org.springframework.context.ApplicationContext>
Constructor and Description |
---|
SpringBeanContainer() |
SpringBeanContainer(Object extendedApplicationContext) |
SpringBeanContainer(SpringBeanContainer parent,
ClassLoader loader) |
SpringBeanContainer(SpringBeanContainer parent,
List<FileObject> files,
ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
<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 |
refresh() |
void |
regSpringConfigXml(List<FileObject> files) |
void |
regSpringConfigXml(String files) |
void |
removeSubBeanContainer(ClassLoader loader) |
void |
removeUrl(String urlString) |
void |
setParent(BeanContainer<?> container) |
public SpringBeanContainer()
public SpringBeanContainer(Object extendedApplicationContext)
public SpringBeanContainer(SpringBeanContainer parent, ClassLoader loader)
public SpringBeanContainer(SpringBeanContainer parent, List<FileObject> files, ClassLoader loader)
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 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>
public void regSpringConfigXml(List<FileObject> files)
public void regSpringConfigXml(String files)
public void removeUrl(String urlString)
public void refresh()
public void setParent(BeanContainer<?> container)
setParent
in interface BeanContainer<org.springframework.context.ApplicationContext>
public void removeSubBeanContainer(ClassLoader loader)
removeSubBeanContainer
in interface BeanContainer<org.springframework.context.ApplicationContext>
Copyright © 2006–2018 TinyGroup. All rights reserved.