Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleCpsDataServiceImpl.java
linenumberstrue
public class CpsDataServiceImpl implements CpsDataService {

    ...

    @Value("${notification.event-schema-version}NotificationService")
    private String notificationServiceQualifier;

    private NotificationService notificationService;

    @Autowired
    public void setNotificationService(final ApplicationContext applicationContext) {
        this.notificationService = (NotificationService) applicationContext.getBean(notificationServiceQualifier);
    }

    ...

}

POC

POC code can be found in Gerrit WIP changes:

Conclusion

Proposed solution above gives flexibility to deploy new releases of the components (producer or consumers) independently, in any order.

...