public class BeanContainerImpl extends Object implements BeanContainer
Constructor and Description |
---|
BeanContainerImpl() |
BeanContainerImpl(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
addAop(AopDefine aopDefine) |
void |
addBeanContainer(BeanContainer beanContainer) |
void |
addTypeConverter(TypeConverter typeConverter) |
<T> T |
getBeanByName(String name) |
<T> T |
getBeanByType(Class<T> clazz) |
<T> T |
getBeanByType(String type) |
<T> Collection<T> |
getBeanCollection(Class<T> clazz) |
<T> Collection<T> |
getBeanCollection(String type) |
<T> List<T> |
getBeanList(Class<T> clazz) |
<T> List<T> |
getBeanList(String type) |
<T> Set<T> |
getBeanSet(Class<T> clazz) |
<T> Set<T> |
getBeanSet(String type) |
ClassLoader |
getClassLoader() |
boolean |
isExistBeanByName(String name) |
boolean |
isExistBeanByType(Class clazz) |
boolean |
isExistBeanByType(String type) |
static boolean |
isSubClass(Class a,
Class b) |
<T> void |
registerClass(Class<T> clazz) |
void |
removeBeanContainer(BeanContainer beanContainer) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setParent(BeanContainer beanContainer) |
public BeanContainerImpl()
public BeanContainerImpl(ClassLoader classLoader)
public <T> void registerClass(Class<T> clazz)
registerClass
in interface BeanContainer
public <T> T getBeanByName(String name)
getBeanByName
in interface BeanContainer
public <T> T getBeanByType(String type)
getBeanByType
in interface BeanContainer
public <T> T getBeanByType(Class<T> clazz)
getBeanByType
in interface BeanContainer
public <T> List<T> getBeanList(String type)
getBeanList
in interface BeanContainer
public <T> List<T> getBeanList(Class<T> clazz)
getBeanList
in interface BeanContainer
public <T> Set<T> getBeanSet(String type)
getBeanSet
in interface BeanContainer
public <T> Set<T> getBeanSet(Class<T> clazz)
getBeanSet
in interface BeanContainer
public <T> Collection<T> getBeanCollection(String type)
getBeanCollection
in interface BeanContainer
public <T> Collection<T> getBeanCollection(Class<T> clazz)
getBeanCollection
in interface BeanContainer
public boolean isExistBeanByName(String name)
isExistBeanByName
in interface BeanContainer
public boolean isExistBeanByType(String type)
isExistBeanByType
in interface BeanContainer
public boolean isExistBeanByType(Class clazz)
isExistBeanByType
in interface BeanContainer
public void addTypeConverter(TypeConverter typeConverter)
addTypeConverter
in interface BeanContainer
public void addAop(AopDefine aopDefine)
addAop
in interface BeanContainer
public void setParent(BeanContainer beanContainer)
setParent
in interface BeanContainer
public void addBeanContainer(BeanContainer beanContainer)
addBeanContainer
in interface BeanContainer
public void removeBeanContainer(BeanContainer beanContainer)
removeBeanContainer
in interface BeanContainer
public ClassLoader getClassLoader()
getClassLoader
in interface BeanContainer
public void setClassLoader(ClassLoader classLoader)
Copyright © 2006–2018 TinyGroup. All rights reserved.