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

Lifecycle management on Injector creation failure and for @Provides methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • lifecycle
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: