Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2262

IOC bind method does not allow specification of multiple markers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-ioc
    • Labels:

      Description

      When binding a service in an AppModule in the bind() method, the ServiceBinder.bind() method returns a ServiceBindingOptions instance that defines

      <T extends Annotation> ServiceBindingOptions withMarker(Class<T>... marker);

      But this does not allow adding more than one marker, as they never have the same Class<T>. Modifying this to Class<? extends Annotation> would solve the problem.

      Thanks,

      Adriaan

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              adriaanjoubert Adriaan Joubert
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: