Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-998

Allow participant lifecycle methods to be declared private

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.17.0.M1/5.0.0.M1
    • Fix Version/s: 5.0.0.M2
    • Component/s: Compensations
    • Labels:
      None

      Description

      Currently following lifecycle method (and any other that is declared private) will never be invoked:

      @Compensate
      private void cancelOrder()
      {
        ...
      }
      

      This is because it is declared private and thus never seen by the reflection mechanism.

      The improvement is to have private methods also considered when searching for lifecycle methods. public methods will always be found, even if they are present in a super class. However, private methods in the super class can not be found.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paul.robinson Paul Robinson
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: