[
https://issues.apache.org/jira/browse/FELIX-5475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824248#comment-15824248
]
David Leangen edited comment on FELIX-5475 at 1/16/17 4:40 PM:
---------------------------------------------------------------
Agree. Indeed, I found that it was necessary to consider both source and
target. It would allow for better control to separate them out.
I will give it a go. I think it would be easier, though to first get the
various smaller changes out of the way. I'll try to make separate issues and
PRs for each so it is easier for you to review. Then I'll get back to this
"big" issue.
was (Author: dleangen):
Ok, I'll do that. I think it would be easier, though to first get the various
smaller changes out of the way. I'll try to make separate issues and PRs for
each so it is easier for you to review. Then I'll get back to this "big" issue.
> Allow the use of DTO.class to signal that an Object should be treated as a
> DTO.
> -------------------------------------------------------------------------------
>
> 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 sourceAs(Class) method with the DTO.class as the
> parameter. 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)