Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1414

Introduce a builder than can create an Infinispan CacheManager

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      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:

      public class CacheManagerBuilder  {
       
         void setClassLoader(ClassLoader cl);
       
         void setTransport(Transport t);
       
         ...
       
         Cache start();
      }
      

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                NadirX Tristan Tarrant
                Reporter:
                pmuir Pete Muir
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: