本文整理汇总了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();
}
}
示例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();
}
示例3: RemoteGraphStore
import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
public RemoteGraphStore(StoreConfiguration configuration) {
super(configuration);
}
示例4: AbstractGraphStore
import com.buschmais.jqassistant.core.store.api.StoreConfiguration; //导入依赖的package包/类
protected AbstractGraphStore(StoreConfiguration configuration) {
this.storeConfiguration = configuration;
}
示例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;
}
示例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());
}
示例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;
}