[infinispan-issues] [JBoss JIRA] (ISPN-4542) Programmatic configuration doesn't have loaders() method

Mikhail Dobrinin (JIRA) issues at jboss.org
Thu Jul 17 19:44:29 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986039#comment-12986039 ] 

Mikhail Dobrinin edited comment on ISPN-4542 at 7/17/14 7:42 PM:
-----------------------------------------------------------------

comment edited


was (Author: mdobrinin):
Actually there does appear to be a way to do it programmatically, but here is the syntax:

{code}
        Configuration config = new ConfigurationBuilder()
            .persistence()
                .addStore(Store.class)
                .loaderClass(MockLoader.class.getName())
            .build();
{code}

> Programmatic configuration doesn't have loaders() method
> --------------------------------------------------------
>
>                 Key: ISPN-4542
>                 URL: https://issues.jboss.org/browse/ISPN-4542
>             Project: Infinispan
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 6.0.0.Final
>            Reporter: Mikhail Dobrinin
>            Assignee: Mircea Markus
>            Priority: Minor
>
> The ConfigurationBuilder class does not actually have a {{loaders}} method. However, the documentation mentions it in a few places such as here -- http://infinispan.org/docs/6.0.x/user_guide/user_guide.html if you search for {{loaders()}} on the page. Also it's not clear to a user if it's possible to configure a custom cache loader programmatically because of this. I'm guessing it's not actually possible. That makes it hard to write tests with a mocked cacheloader.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the infinispan-issues mailing list