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


Java StoreConfiguration类代码示例

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


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

示例1: getStoreConfiguration

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
/**
 * Determines the directory to use for the store.
 *
 * @param rootModule
 *            The root module.
 * @return The directory.
 */
private StoreConfiguration getStoreConfiguration(MavenProject rootModule) {
    if (store != null) {
        return store;
    } else {
        File directory;
        if (this.storeDirectory != null) {
            directory = this.storeDirectory;
        } else {
            directory = new File(rootModule.getBuild().getDirectory(), STORE_DIRECTORY);
        }
        directory.getParentFile().mkdirs();
        return StoreConfiguration.builder().uri(directory.toURI()).build();
    }
}
 
开发者ID:buschmais,项目名称:jqa-maven-plugin,代码行数:22,代码来源:AbstractMojo.java

示例2: withStandardOptions

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
@Override
public void withStandardOptions(CommandLine options) throws CliConfigurationException {
    StoreConfiguration.StoreConfigurationBuilder builder = StoreConfiguration.builder();
    String storeUri = getOptionValue(options, CMDLINE_OPTION_STORE_URI);
    String storeDirectory = getOptionValue(options, CMDLINE_OPTION_S);
    if (storeUri != null && storeDirectory != null) {
        throw new CliConfigurationException("Expecting either parameter '" + CMDLINE_OPTION_STORE_DIRECTORY + "' or '" + CMDLINE_OPTION_STORE_URI + "'.");
    }
    if (storeUri != null) {
        try {
            builder.uri(new URI(storeUri));
        } catch (URISyntaxException e) {
            throw new CliConfigurationException("Cannot parse URI " + storeUri, e);
        }
        builder.username(getOptionValue(options, CMDLINE_OPTION_STORE_USERNAME));
        builder.password(getOptionValue(options, CMDLINE_OPTION_STORE_PASSWORD));
    } else {
        File directory;
        if (storeDirectory != null) {
            directory = new File(storeDirectory);
        } else {
            directory = new File(DEFAULT_STORE_DIRECTORY);
        }
        directory.getParentFile().mkdirs();
        builder.uri(directory.toURI());
    }
    this.storeConfiguration = builder.build();
}
 
开发者ID:buschmais,项目名称:jqa-commandline-tool,代码行数:29,代码来源:AbstractTask.java

示例3: RemoteGraphStore

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
public RemoteGraphStore(StoreConfiguration configuration) {
    super(configuration);
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:4,代码来源:RemoteGraphStore.java

示例4: AbstractGraphStore

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
protected AbstractGraphStore(StoreConfiguration configuration) {
    this.storeConfiguration = configuration;
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:4,代码来源:AbstractGraphStore.java

示例5: createStore

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
/**
 * Create/open store in the given directory.
 * 
 * @param storeConfiguration
 *            The store configuration.
 * @param types
 *            The types to register.
 * @return The store.
 */
public Store createStore(StoreConfiguration storeConfiguration, List<Class<?>> types) {
    Store store = com.buschmais.jqassistant.core.store.api.StoreFactory.getStore(storeConfiguration);
    store.start(types);
    stores.put(store, storeConfiguration.getUri());
    return store;
}
 
开发者ID:buschmais,项目名称:jqa-maven-plugin,代码行数:16,代码来源:StoreFactory.java

示例6: EmbeddedGraphStore

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param databaseDirectory
 *            The directory of the database.
 */
@Deprecated
public EmbeddedGraphStore(String databaseDirectory) {
    super(StoreConfiguration.builder().uri(new File(databaseDirectory).toURI()).build());
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:11,代码来源:EmbeddedGraphStore.java

示例7: GraphDbStore

import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param graphDatabaseService
 *            The {@link org.neo4j.graphdb.GraphDatabaseService}.
 */
public GraphDbStore(GraphDatabaseService graphDatabaseService) throws URISyntaxException {
    super(StoreConfiguration.builder().uri(new URI("graphDb:///")).build());
    this.graphDatabaseService = graphDatabaseService;
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:11,代码来源:GraphDbStore.java


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