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

Improve the way custom objects are injected into ExtendedModuleCommandFactory impls

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Core
    • None

      Retrieving the ExtendedModuleCommandFactory associated with a cache manager is a PITA right now, you have to do:

      GlobalComponentRegistry globalCr = cache.getComponentRegistry().getGlobalComponentRegistry();
      // TODO: This is a hack, make it easier to retrieve in Infinispan!
      return (CacheCommandFactory) ((Map) globalCr.getComponent("org.infinispan.modules.command.factories"))
         .values().iterator().next();
      

      Provide a cleaner way of initialising cache command factories for custom objects that the factory can plug into the remote commands. Example: evict all in 2LC where commands need to know the cache region (a Hibernate construct) on which to operate on.

            Unassigned Unassigned
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: