You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Anatole Tresch (JIRA)" <ji...@apache.org> on 2015/06/10 00:56:00 UTC

[jira] [Assigned] (TAMAYA-74) Support for type narrowing

     [ https://issues.apache.org/jira/browse/TAMAYA-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anatole Tresch reassigned TAMAYA-74:
------------------------------------

    Assignee: Anatole Tresch

> Support for type narrowing
> --------------------------
>
>                 Key: TAMAYA-74
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-74
>             Project: Tamaya
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 0.2-incubating
>            Reporter: Oliver B. Fischer
>            Assignee: Anatole Tresch
>             Fix For: 0.1-incubating
>
>
> Tamays should support type narrowing. Currently a user of Tamaya can only specify the concrete target type when getting a property value as object value.
> I would like to see support for type narrowing in Tamaya to according to these rules:
> Given an interface or abstract class A and a class B implementing or inheriting from A. If a user requests a property of type A Tamaya should be able to determine that B is a valid return value for this request and return an instance of B.
> Given an interface  or abstract class A and two classes B and C implementing or inheriting from A. If a user requests a property of type A Tamays should be able to determine that B and C are valid return values for this request and return an instance of B or C.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)