Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2083

(injector) cannot pass arguments to a custom producer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      it is currently not possible to pass arguments to a producer at runtime as it only uses arguments that are registered in the binding. This makes simple use cases where instantiation of a class that requires parameter at runtime (and where they are not bound) to be harder then what it needs to.

      As a work around, a factory class is required. It is looked up and it has a method to produce the instance. This way, no arguments have to be passed when calling lookup, or produce on a looked up producer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              henrik.lindberg Henrik Lindberg
              QA Contact:
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support