1 16 17 package org.springframework.beans.factory; 18 19 import org.springframework.beans.BeansException; 20 21 106 public interface BeanFactory { 107 108 114 String FACTORY_BEAN_PREFIX = "&"; 115 116 117 130 Object getBean(String name) throws BeansException; 131 132 150 Object getBean(String name, Class requiredType) throws BeansException; 151 152 158 boolean containsBean(String name); 159 160 174 boolean isSingleton(String name) throws NoSuchBeanDefinitionException; 175 176 191 boolean isPrototype(String name) throws NoSuchBeanDefinitionException; 192 193 204 boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException; 205 206 217 Class getType(String name) throws NoSuchBeanDefinitionException; 218 219 228 String [] getAliases(String name); 229 230 } 231 | Popular Tags |