parent
27b5764e57
commit
f87a2f4cd5
2 changed files with 1 additions and 32 deletions
@ -1,31 +0,0 @@ |
||||
package org.panda.beans; |
||||
|
||||
/** |
||||
* 对象工厂 |
||||
*/ |
||||
public interface Beanfactory { |
||||
|
||||
/** |
||||
* 根据对象名称,获取实例 |
||||
* @param name |
||||
* @return |
||||
*/ |
||||
Object getBean(String name); |
||||
|
||||
/** |
||||
* 根据对象class,获取对象实例 |
||||
* @param clazz |
||||
* @param <T> |
||||
* @return |
||||
*/ |
||||
<T> T getBean(Class<T> clazz); |
||||
|
||||
/** |
||||
* 判断容器中是否存在对象 |
||||
* @param name |
||||
* @return 存在:true 不存在:false |
||||
*/ |
||||
boolean containsBean(String name); |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue