[
https://issues.jboss.org/browse/ISPN-4542?page=com.atlassian.jira.plugin....
]
Mikhail Dobrinin commented on ISPN-4542:
----------------------------------------
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)