当前位置: 首页>>代码示例>>Java>>正文


Java ConfigurationException类代码示例

本文整理汇总了Java中at.punkt.lodms.integration.ConfigurationException的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationException类的具体用法?Java ConfigurationException怎么用?Java ConfigurationException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ConfigurationException类属于at.punkt.lodms.integration包,在下文中一共展示了ConfigurationException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: displayConfigWindow

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
public void displayConfigWindow(final ConfigBeanProvider configBeanProvider, final ConfigSuccessHandler handler, Object config) {
    configWindow.removeAllComponents();
    configWindow.setCaption("Configuration: " + ((UIComponent) configBeanProvider).getName());
    VerticalLayout configWinLayout = new VerticalLayout();
    Form form = new Form(new VerticalLayout());

    if (config == null) {
        config = configBeanProvider.newDefaultConfig();
    }
    final BeanItem beanItem = new BeanItem(config);
    form.setItemDataSource(beanItem);
    form.setImmediate(true);
    configWinLayout.addComponent(form);
    Button configureButton = new Button("Configure");
    configureButton.addListener(new Button.ClickListener() {
        @Override
        public void buttonClick(ClickEvent event) {
            try {
                configBeanProvider.configure(beanItem.getBean());
                handler.configured();
                getMainWindow().removeWindow(configWindow);
            } catch (ConfigurationException ex) {
                getMainWindow().showNotification(ex.getMessage(), Notification.TYPE_ERROR_MESSAGE);
                logger.error("Unable to configure component", ex);
            }
        }
    });
    Label configExplanation = new Label(CONFIG_INFO, Label.CONTENT_TEXT);
    configExplanation.addStyleName("lodms-config-info");
    configWinLayout.addComponent(configExplanation);
    configWinLayout.addComponent(configureButton);
    configWinLayout.setComponentAlignment(configureButton, Alignment.BOTTOM_CENTER);
    configWindow.addComponent(configWinLayout);
    getMainWindow().addWindow(configWindow);
}
 
开发者ID:lodms,项目名称:lodms-core,代码行数:36,代码来源:LodmsApplication.java

示例2: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(CkanExtractorConfig config) throws ConfigurationException {
  subjectPrefix = config.getSubjectPrefix();
  predicatePrefix = config.getPredicatePrefix();
  baseUri = config.getBaseUri();
  packageIds.clear();
  packageIds.addAll(config.getPackageIds());
  ignoredKeys = Arrays.asList(config.getIgnoredKeys().split("\\s*,\\s*"));
  harvestAll = config.getAllDatasets();
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:11,代码来源:CkanExtractor.java

示例3: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(VirtuosoExtractorConfig config) throws ConfigurationException {
    String connectionString = "jdbc:virtuoso://" + config.getHost() + ':' + config.getPort();
    repository = new VirtuosoRepository(connectionString, config.getUserName(), config.getPassword(), true);
    ValueFactory valueFactory = repository.getValueFactory();
    if (config.getGraph() != null)
        graph = valueFactory.createURI(config.getGraph());
    if (config.getSubject() != null)
        subject = valueFactory.createURI(config.getSubject());
    if (config.getPredicate() != null)
        predicate = valueFactory.createURI(config.getPredicate());
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:13,代码来源:VirtuosoExtractor.java

示例4: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(Any23Config config) throws ConfigurationException {
    try {
        for (Any23Document doc : config.getDocuments()) {
            DocumentSource source = new HTTPDocumentSource(runner.getHTTPClient(), doc.getUrl());
            sources.add(source);
        }
    } catch (Exception ex) {
        throw new ConfigurationException(ex);
    }
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:12,代码来源:Any23Extractor.java

示例5: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(SPARQLConfig config) throws ConfigurationException {
    try {
        endpoint = new URL(config.getEndpoint());
        query = config.getQuery();
    } catch (MalformedURLException ex) {
        throw new ConfigurationException(ex);
    }
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:10,代码来源:SPARQLExtractor.java

示例6: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(RDFExtractorConfig config) throws ConfigurationException {
    rdfLocation = config.getRdfLocation();
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:5,代码来源:RDFExtractor.java

示例7: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ODSValueMapperConfig config) throws ConfigurationException {
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:4,代码来源:ODSValueMapper.java

示例8: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@SuppressWarnings("ParameterHidesMemberVariable")
@Override
protected void configureInternal(ODSDcatGeneratorConfig config) throws ConfigurationException {
  catalogIdentifier = config.getCatalogIdentifier();
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:6,代码来源:ODSDCatGenerator.java

示例9: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(Object config) throws ConfigurationException {
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:4,代码来源:ODSCleaner.java

示例10: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(TranslatorConfig config) throws ConfigurationException {
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:4,代码来源:WebTranslator.java

示例11: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ODSModificationDetectorConfig config) throws ConfigurationException {
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:4,代码来源:ODSModificationDetector.java

示例12: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(MultipleSparqlUpdateConfig config) throws ConfigurationException {
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:4,代码来源:MultipleSparqlUpdateTransformer.java

示例13: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(DBPediaDataConfig config) throws ConfigurationException {
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:4,代码来源:DBPediaDataTransformer.java

示例14: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ThesaurusImportConfig config) throws ConfigurationException {
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:4,代码来源:ThesaurusImportLoader.java

示例15: configureInternal

import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(PPXConfig config) throws ConfigurationException {
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:4,代码来源:PPXTransformer.java


注:本文中的at.punkt.lodms.integration.ConfigurationException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。