public interface BeanContainer<C>
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
|
C |
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 |
setParent(BeanContainer<?> container) |
C getBeanContainerPrototype()
BeanContainer<?> getSubBeanContainer(List<FileObject> files, ClassLoader loader)
files
- loader
- BeanContainer<?> getSubBeanContainer(ClassLoader loader)
void removeSubBeanContainer(ClassLoader loader)
void setParent(BeanContainer<?> container)
Map<ClassLoader,BeanContainer<?>> getSubBeanContainers()
<T> Collection<T> getBeans(Class<T> type)
T
- type
- <T> T getBean(String name)
T
- name
- <T> T getBean(Class<T> clazz)
T
- clazz
- Copyright © 2006–2018 TinyGroup. All rights reserved.