Oliver B. Fischer created TAMAYA-74:
---------------------------------------

             Summary: 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
             Fix For: 0.2-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)

Reply via email to