All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.baidu.disconf.client.support.registry.Registry Maven / Gradle / Ivy

The newest version!
package com.baidu.disconf.client.support.registry;

import java.util.List;

/**
 * Created by knightliao on 15/11/26.
 */
public interface Registry {

    /**
     * 查找Bean
     *
     * @param type 类型
     *
     * @return 可找到的Bean的实例列表
     */
     List findByType(Class type, boolean newInstance);

    /**
     * 查找Bean
     *
     * @param type 类型
     *
     * @return 可找到的Bean的实例列表
     */
     T getFirstByType(Class type, boolean newInstance);

    /**
     * 查找Bean, 是否找proxy
     *
     * @param type 类型
     *
     * @return 可找到的Bean的实例列表
     */
     T getFirstByType(Class type, boolean newInstance, boolean withProxy);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy