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

Specific Types for functional interfaces with generic types

    XMLWordPrintable

Details

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

    Description

      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[]>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: