You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2017/01/23 02:43:26 UTC

[jira] [Resolved] (FELIX-5475) Implement sourceAsDTO() and targetAsDTO()

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

David Bosschaert resolved FELIX-5475.
-------------------------------------
    Resolution: Fixed

Patch applied with many thanks: https://svn.apache.org/viewvc?view=revision&revision=1779874

> Implement sourceAsDTO() and targetAsDTO()
> -----------------------------------------
>
>                 Key: FELIX-5475
>                 URL: https://issues.apache.org/jira/browse/FELIX-5475
>             Project: Felix
>          Issue Type: Improvement
>          Components: Converter
>            Reporter: David Leangen
>            Assignee: David Bosschaert
>
> Sometimes it is useful to treat a class as if it were a DTO, i.e. by ignoring methods, static fields etc.
> This can be done using the sourceAsDTO() and targetAsDTO() methods that were recently added to the spec API. This is a non-ambiguous way to signal to the Converter to treat any Object as if it were a DTO (at the risk of the caller).



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