felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Leangen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5475) Implement sourceAsDTO() and targetAsDTO()
Date Fri, 20 Jan 2017 20:13:26 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15832342#comment-15832342

David Leangen commented on FELIX-5475:

Converter PR has been prepared.

No changes to make to Serializer.

Will move updates to Schematizer to a different issue in order to expedite review and completion
of this issue.

--> Ready for review!!

> 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
> 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

View raw message