]
Mircea Markus updated ISPN-1834:
--------------------------------
Component/s: Core
Improve the way custom objects are injected into
ExtendedModuleCommandFactory impls
-----------------------------------------------------------------------------------
Key: ISPN-1834
URL:
https://issues.jboss.org/browse/ISPN-1834
Project: Infinispan
Issue Type: Enhancement
Components: Core
Reporter: Galder ZamarreƱo
Assignee: Manik Surtani
Retrieving the ExtendedModuleCommandFactory associated with a cache manager is a PITA
right now, you have to do:
{code}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();
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: