當前位置: 首頁>>代碼示例>>Java>>正文


Java PluginRepositoryImpl類代碼示例

本文整理匯總了Java中com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl的典型用法代碼示例。如果您正苦於以下問題:Java PluginRepositoryImpl類的具體用法?Java PluginRepositoryImpl怎麽用?Java PluginRepositoryImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PluginRepositoryImpl類屬於com.buschmais.jqassistant.core.plugin.impl包,在下文中一共展示了PluginRepositoryImpl類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: repositories

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //導入依賴的package包/類
@Test
public void repositories() throws PluginRepositoryException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(PluginRepositoryTest.class.getClassLoader());
    PluginRepository pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    // Scanner plugins
    ScannerContext scannerContext = mock(ScannerContext.class);
    Map<String, ScannerPlugin<?, ?>> scannerPlugins = pluginRepository.getScannerPluginRepository().getScannerPlugins(scannerContext, Collections.<String, Object>emptyMap());
    assertThat(scannerPlugins.size(), equalTo(2));
    assertThat(scannerPlugins.get(TestScannerPlugin.class.getSimpleName()), notNullValue());
    assertThat(scannerPlugins.get("testScanner"), notNullValue());
    // Report plugins
    Map<String, ReportPlugin> reportPlugins = pluginRepository.getReportPluginRepository().getReportPlugins(Collections.<String, Object>emptyMap());
    assertThat(reportPlugins.size(), equalTo(2));
    assertThat(reportPlugins.get(TestReportPlugin.class.getSimpleName()), notNullValue());
    assertThat(reportPlugins.get("testReport"), notNullValue());
}
 
開發者ID:buschmais,項目名稱:jqa-core-framework,代碼行數:17,代碼來源:PluginRepositoryTest.java

示例2: PluginRepositoryProvider

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //導入依賴的package包/類
PluginRepositoryProvider() throws MojoExecutionException {
    try {
        pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    } catch (PluginRepositoryException e) {
        throw new MojoExecutionException("Cannot create plugin repository.", e);
    }
}
 
開發者ID:buschmais,項目名稱:jqa-maven-plugin,代碼行數:8,代碼來源:PluginRepositoryProvider.java

示例3: getPluginRepository

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //導入依賴的package包/類
/**
 * Initialize the plugin repository.
 * 
 * @return The repository.
 * @throws CliExecutionException
 *             If initialization fails.
 */
private PluginRepository getPluginRepository() throws CliExecutionException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(createPluginClassLoader());
    try {
        return new PluginRepositoryImpl(pluginConfigurationReader);
    } catch (PluginRepositoryException e) {
        throw new CliExecutionException("Cannot create plugin repository.", e);
    }
}
 
開發者ID:buschmais,項目名稱:jqa-commandline-tool,代碼行數:16,代碼來源:Main.java

示例4: pluginProperties

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //導入依賴的package包/類
/**
 * Verifies that properties are loaded and passed to plugins.
 *
 * @throws PluginRepositoryException If the test fails.
 */
@Test
public void pluginProperties() throws PluginRepositoryException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(PluginRepositoryTest.class.getClassLoader());
    Map<String, Object> properties = new HashMap<>();
    properties.put("testKey", "testValue");
    PluginRepository pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    // scanner plugins
    verifyProperties(getScannerPluginProperties(pluginRepository, properties));
    // report plugins
    verifyProperties(getReportPluginProperties(pluginRepository, properties));
}
 
開發者ID:buschmais,項目名稱:jqa-core-framework,代碼行數:17,代碼來源:PluginRepositoryTest.java


注:本文中的com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。