spring系列学习之一BeanFactory

BeanFactory的方法:

Object getBean(String name) throws BeansException;
 T getBean(String name, Class requiredType) throws BeansException;
 T getBean(Class requiredType) throws BeansException;
 T getBean(Class requiredType, Object... args) throws BeansException;
boolean isSingleton(String name) throws NoSuchBeanDefinitionException;
boolean isPrototype(String name) throws NoSuchBeanDefinitionException;
boolean isTypeMatch(String name, ResolvableType typeToMatch) throws NoSuchBeanDefinitionException;
boolean isTypeMatch(String name, Class typeToMatch) throws NoSuchBeanDefinitionException;
 
Class getType(String name) throws NoSuchBeanDefinitionException;
 
String[] getAliases(String name);

 

 

你可能感兴趣的:(spring系列学习之一BeanFactory)