/*------------------------------------------------------------------------------------Binding*/
/**通过一个类型获取所有绑定到该类型的上的对象实例。*/
public <T> List<T> findBindingBean(final Class<T> bindType) {
Hasor.assertIsNotNull(bindType, "bindType is null.");
//
BindInfoFactory infoFactory = this.getBindInfoFactory();
String[] namesOfType = this.getBindInfoFactory().getNamesOfType(bindType);
if (namesOfType == null || namesOfType.length == 0) {
return new ArrayList<T>(0);
}
ArrayList<T> returnData = new ArrayList<T>();
for (String name : namesOfType) {
BindInfo<T> info = infoFactory.getBindInfo(name, bindType);
Provider<T> provider = this.getProvider(info);
if (provider != null) {
T obj = provider.get();
if (obj != null) {
returnData.add(obj);