Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-66

UnitOfWork should leverage Java 7 AutoCloseable and try-with-resources

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:

      Description

      try( UnitOfWork uow = module.newUnitOfWork() )
      {
          // ...
          uow.complete();
      }
      

      See https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

        Attachments

          Activity

            People

            • Assignee:
              eskatos Paul Merlin
              Reporter:
              eskatos Paul Merlin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: