[infinispan-issues] [JBoss JIRA] (ISPN-6686) Improve fluency of persistent store configuration builders

Krzysztof Sobolewski (JIRA) issues at jboss.org
Fri Jun 3 05:14:00 EDT 2016


     [ https://issues.jboss.org/browse/ISPN-6686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Sobolewski updated ISPN-6686:
---------------------------------------
    Summary: Improve fluency of persistent store configuration builders  (was: Improve fluidity of persistent store configuration builders)


> 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 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}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list