[jboss-jira] [JBoss JIRA] (ELY-809) Specific Types for functional interfaces with generic types

Darran Lofthouse (JIRA) issues at jboss.org
Mon Dec 5 09:27:00 EST 2016


     [ https://issues.jboss.org/browse/ELY-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse resolved ELY-809.
----------------------------------
    Resolution: Rejected


We have discussed this and decided special 'Capability' classes will be added to the subsystem instead.

> Specific Types for functional interfaces with generic types
> -----------------------------------------------------------
>
>                 Key: ELY-809
>                 URL: https://issues.jboss.org/browse/ELY-809
>             Project: WildFly Elytron
>          Issue Type: Enhancement
>          Components: API / SPI
>            Reporter: Darran Lofthouse
>            Assignee: Darran Lofthouse
>             Fix For: 1.1.0.Beta17
>
>
> 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.
> {code}
>   ProvidersSupplier extends Supplier<Provider[]>
> {code}
> Code that depends on this can still depend on Supplier<Provider[]>



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list