Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-809

Specific Types for functional interfaces with generic types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • 1.1.0.Beta17
    • None
    • API / SPI
    • None

      Using MSC and WildFly Core's Capabilities and Requirements support there is a limit as to how far we can go with generic and maintain type safety.

      For any type returned by a factory method we should have a type that extends from the functional interface with the geeneric types specified e.g.

        ProvidersSupplier extends Supplier<Provider[]>
      

      Code that depends on this can still depend on Supplier<Provider[]>

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: