Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-290

ServiceRegistry.getRetryingTransactionHelper has been deprecated, with no public alternative

    Details

      Description

      As of v4.2, the getRetryingTransactionHelper method in org.alfresco.service.ServiceRegistry has been marked deprecated, with the alternative of using TransactionService.getRetryingTransactionHelper (see ALF-18718).

      TransactionService is not in the public API [1] however (and with good reason), leaving no public way to obtain the RetryingTransactionHelper.

      Recommendation: remove the deprecated marker on getRetryingTransactionHelper, and have the implementation internally delegate to TransactionService.getRetryingTransactionHelper. This achieves the same end result, while ensuring that the private TransactionService class doesn't "leak" into extensions as a private dependency.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                pmonks Peter Monks [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: