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-5614) Make isDTOType(Class<?> cls) publicly available
Date Tue, 18 Apr 2017 23:01:41 GMT

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

David Leangen commented on FELIX-5614:

Thank you, [~bosschaert]!

Sure, that would work. Or what about simply the package: org.apache.felix.converter? Or perhaps
org.apache.felix.converter.util? Whatever name you are ok with, I think it will be fine. I
am ok with embedding and not exporting/importing, but would you mind helping me out? I'm not
used to working with Maven, so I'm not sure how to embed it. :-)

I was kinda seeing this as an additional "feature" that the Felix implementation could provide,
so I had in mind making the package public, but I don't see why embedding would work.

In any case, thanks a lot for making this happen. :-)

> Make isDTOType(Class<?> cls) publicly available
> -----------------------------------------------
>                 Key: FELIX-5614
>                 URL: https://issues.apache.org/jira/browse/FELIX-5614
>             Project: Felix
>          Issue Type: Improvement
>          Components: Converter
>            Reporter: David Leangen
>            Assignee: David Bosschaert
> In ConvertingImpl, which a (bundle private) implementation class, there is a (class private)
method: isDTOType(Class<?> cls)
> Since this is a rule based on the definition of a DTO in the spec, it would be nice to
make this test somehow available publicly for general use (including by other bundles).
> It tedious for each user of the API to write their own test if an authoritative test
is already available.
> For my particular use case, the Schematizer needs to test a class to determine whether
or not it is a DTO in order to know how to handle it. Having the test available (without having
to copy over the code from the Converter) would be quite useful..

This message was sent by Atlassian JIRA

View raw message