Uploaded image for project: 'Apache Onami'
  1. Apache Onami
  2. ONAMI-43

Lifecycle management on Injector creation failure and for @Provides methods

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: lifecycle
    • Labels:
      None

      Description

      1. Sometimes Injector creation can fail and in that case all created resources must be disposed anyway.

      2. It should be possible to register objects for disposal from @Provides methods - i added DisposableRegistrator for that.

      3. Disposables should be processed in reverse order to their registration.

      See the attached patch. WDYT?

        Attachments

        1. ONAMI-43.patch
          18 kB
          Mikhail Mazursky

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ash2k Mikhail Mazursky
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: