[
https://issues.jboss.org/browse/ISPN-6686?page=com.atlassian.jira.plugin....
]
Krzysztof Sobolewski updated ISPN-6686:
---------------------------------------
Description:
Configuration of cache stores has some fluency issues. I'd like to do:
{code:java}
ConfigurationBuilder builder = ...;
builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...)
.table() // <- compilation error
...
.connectionPool() // <- compilation error
...;
{code}
but I'm forced to do:
{code:java}
ConfigurationBuilder builder = ...;
JdbcStringBasedStoreConfigurationBuilder store = builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...);
store
.table()
...;
store
.connectionPool()
...;
{code}
was:
Configuration of cache stores has some fluidity issues. I'd like to do:
{code:java}
ConfigurationBuilder builder = ...;
builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...)
.table() // <- compilation error
...
.connectionPool() // <- compilation error
...;
{code}
but I'm forced to do:
{code:java}
ConfigurationBuilder builder = ...;
JdbcStringBasedStoreConfigurationBuilder store = builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...);
store
.table()
...;
store
.connectionPool()
...;
{code}
Improve fluency of persistent store configuration builders
----------------------------------------------------------
Key: ISPN-6686
URL:
https://issues.jboss.org/browse/ISPN-6686
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Loaders and Stores
Affects Versions: 8.2.2.Final
Reporter: Krzysztof Sobolewski
Configuration of cache stores has some fluency issues. I'd like to do:
{code:java}
ConfigurationBuilder builder = ...;
builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...)
.table() // <- compilation error
...
.connectionPool() // <- compilation error
...;
{code}
but I'm forced to do:
{code:java}
ConfigurationBuilder builder = ...;
JdbcStringBasedStoreConfigurationBuilder store = builder
.persistence()
.addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.dialect(...);
store
.table()
...;
store
.connectionPool()
...;
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)