Details
-
Enhancement
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
Description
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.
Attachments
Issue Links
- relates to
-
ISPN-5601 Merge ExtendedModuleCommandFactory into ModuleCommandFactory
- Closed