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/09 13:42:00 UTC

[jira] [Commented] (TAMAYA-36) Enable direct mapped properties

    [ https://issues.apache.org/jira/browse/TAMAYA-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578767#comment-14578767 ] 

Anatole Tresch commented on TAMAYA-36:
--------------------------------------

Direct mapping must be activated by adding an annotation on top level IMO. Enabling it by default may easily create interference/problems with other injection mechanisms such as CDI or likely create unexpected errors. Additionally it must be possible to explicitly exclude properties from being auto-configured, e.g. using a @NoConfig annotation.

> Enable direct mapped properties
> -------------------------------
>
>                 Key: TAMAYA-36
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-36
>             Project: Tamaya
>          Issue Type: Improvement
>          Components: API, Core
>            Reporter: Anatole Tresch
>            Assignee: Anatole Tresch
>             Fix For: 0.1-incubating
>
>
> Enhance the config injection mecjhanisms, so properties can be injected without any annotations, by simply using the field / method name as base for a configuration key, optionally also in combination with the package name. This way classes can be configured without any annotations in place, but for better control annotations provide the fullfledged feature set.



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