[infinispan-issues] [JBoss JIRA] (ISPN-1834) Improve the way custom objects are injected into ExtendedModuleCommandFactory impls

Mircea Markus (JIRA) issues at jboss.org
Fri Jan 24 13:56:29 EST 2014


     [ https://issues.jboss.org/browse/ISPN-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list