ConfigurationReader
类是Solr客户端配置项读取器。 功能详细描述:系统加载时,本读取器将加载solr_client_config.properties配置文件并读取所有配置项缓存到系统内存中。 本类为单例实例,获取配置项示例代码如下:
ConfigurationReader configReader = ConfigurationReader.getInstance(); String solrBaseUrl = configReader.getString(ConfigurationKey.SOLR_BASE_URL);@author andy.zheng zhengwei09@founder.com.cn @see com.apabi.solr.client.factory.SolrClientFactory#registerSolrClient() @version 1.0, 2013-3-29 下午1:49:47 @since SolrClient 1.0
ConfigurationReader reader = new ConfigurationReader ("config.xml","standard"); try { reader.start(); } catch (org.apache.fop.apps.FOPException error) { reader.dumpError(error); }
Once the configuration has been setup, the information can be accessed with the methods of StandardConfiguration.
Configuration
objects.
@version $Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $
|
|
|
|
|
|
|
|