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

David Bosschaert commented on FELIX-5614:
-----------------------------------------

I've separated the method out into a public class: 
  DTOUtil.isDTOType(Class<?> cls)

here https://svn.apache.org/viewvc?view=revision&revision=1791797

However, it's now still in the org.apache.felix.converter.impl package which is 
not exported, so that still won't allow you to use it easily. 
One thing we could do is put it in its own package, like 
org.apache.felix.converter.impl.dto or something like that. Then you can embed 
that package in your own bundles and don't need to import it. Since the package 
will only contain the one DTOUtil class this will be cheap.

Any better ideas?



> 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
(v6.3.15#6346)

Reply via email to