Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-7

Disposer methods for @Default producer methods declared on generic beans require explicit definition of @Default

    Details

    • Workaround Description:
      Hide

      Add @Default to the producer method's qualifiers

      Show
      Add @Default to the producer method's qualifiers

      Description

      For example

      @Produces
      public ComputeServiceContext getContext()

      { return this.factory.createContext(config.provider(), properties); }

      public void cleanup(@Disposes @Generic ComputeServiceContext context)

      { context.close(); }

      will cause the disposer to not be resolved for the producer method

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                pmuir Pete Muir
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: