[infinispan-issues] [JBoss JIRA] (ISPN-1414) Introduce a builder than can create an Infinispan CacheManager
Tristan Tarrant (JIRA)
issues at jboss.org
Mon May 11 03:28:19 EDT 2015
[ https://issues.jboss.org/browse/ISPN-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant reassigned ISPN-1414:
-------------------------------------
Assignee: Tristan Tarrant
> Introduce a builder than can create an Infinispan CacheManager
> --------------------------------------------------------------
>
> Key: ISPN-1414
> URL: https://issues.jboss.org/browse/ISPN-1414
> Project: Infinispan
> Issue Type: Feature Request
> Components: Core
> Reporter: Pete Muir
> Assignee: Tristan Tarrant
>
> Provide a builder class that allows passing in of SPI instances, rather than doing lookup. This allows for much easier integration, as context from the app server bootstrap can be easily passed in.
> For example:
> {code}
> public class CacheManagerBuilder {
> void setClassLoader(ClassLoader cl);
> void setTransport(Transport t);
> ...
> Cache start();
> }
> {code}
> We would still want to offer a wrapper around this for Java SE users that would expose a create a CacheManager easily. This factory would want to use a CacheManagerBuilder internally to create the cache, but offer a simplified API. You would want to expose the Builder from the factory as well, offering a sensible set of defaults for SE.
> This would break backwards compatibility, as doing new EmbeddedCacheManager etc. would no longer be possible.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the infinispan-issues
mailing list