]
Pedro Ruivo updated ISPN-11800:
-------------------------------
Sprint: DataGrid Sprint #44
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}}