[infinispan-issues] [JBoss JIRA] (ISPN-11800) Convert BackupReceiver to component

Will Burns (Jira) issues at jboss.org
Thu May 14 13:22:45 EDT 2020


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

Will Burns updated ISPN-11800:
------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> Convert BackupReceiver to component
> -----------------------------------
>
>                 Key: ISPN-11800
>                 URL: https://issues.redhat.com/browse/ISPN-11800
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Core, Cross-Site Replication
>    Affects Versions: 11.0.0.Dev05
>            Reporter: Pedro Ruivo
>            Assignee: Pedro Ruivo
>            Priority: Major
>             Fix For: 11.0.0.CR1
>
>
> The {{BackupReceiver}} instance is created by {{BackupReceiverRepository}} and it needs access to the {{Cache}} instance for its dependencies.
> However, with the latest changes in Cross-Site Replication, it needs to be accessed by commands and the only way to do it is by doing:
> {code:java}
> BackupReceiver backupReceiver = registry.getGlobalComponentRegistry()
>             .getComponent(BackupReceiverRepository.class)
>             .getBackupReceiver(cache);
> {code}
> Bottom line: tt should be converted to a component.
> Another alternative would be to merge it with {{PerCacheInboundInvocationHandler}}... but it doesn't sound too good since it will increase the complexity and size of {{PerCacheInboundInvocationHandler}}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list