GitHub user dleangen opened a pull request:

    https://github.com/apache/felix/pull/80

    DTO Sourcing

    It is very nice to have the sourceAs(Class) method. In order to make it a 
bit more generalized and useful, this update allows the use of DTO.class to 
signal that the Object should be treated as a DTO.
    
    There are times when the specific type of DTO is not known, but it is known 
that the Object should be treated as if it were a DTO.
    
    Without this fix, the internal isDTOType(Class) method does not (correctly) 
consider the DTO class to actually be a DTO, since it is abstract and does not 
follow the rules for a DTO.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dleangen/felix DTO-sourcing

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/80.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #80
    
----
commit 432a7224392935a58c85b0fc1e5d968e48d6348f
Author: David Leangen <[email protected]>
Date:   2016-12-29T17:02:18Z

    Update to allow the use of DTO.class to signal that an Object should be 
treated as a DTO.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to