[jira] [Resolved] (FELIX-5380) Reduce quite useless log verbosity

2016-10-18 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved FELIX-5380. Resolution: Fixed Assignee: Guillaume Nodet Fix Version/s: configadmin-1.9.0

[jira] [Commented] (FELIX-5380) Reduce quite useless log verbosity

2016-10-18 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15586675#comment-15586675 ] Guillaume Nodet commented on FELIX-5380: Committing to

[jira] [Commented] (FELIX-5383) Support parallel bundle starting

2016-10-18 Thread Matt Magoffin (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15586579#comment-15586579 ] Matt Magoffin commented on FELIX-5383: -- Upon closer investigation, Gemini Blueprint itself is

[jira] [Commented] (FELIX-5383) Support parallel bundle starting

2016-10-18 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15586340#comment-15586340 ] Guillaume Nodet commented on FELIX-5383: Fwiw, synchronous start is not a problem if there will be

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Bosschaert
Hi David L, I've implemented an initial version here: https://svn.apache.org/viewvc?view=revision=1765430 I had to rename the methods a little bit. The to() has the actual implementation type, just as before. The new method added is target() which is where you can specify how to view the target

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Leangen
HI David B., Yup, something like that would do just fine!! Thanks a lot. Cheers, =David > On Oct 18, 2016, at 7:43 PM, David Bosschaert > wrote: > > Hi David L, > > The as() method (at least in its current incantation) say something about > how to treat the

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Bosschaert
Hi David L, The as() method (at least in its current incantation) say something about how to treat the source object - the thing you are converting from. So in your example myDtoWithMethods = converter.convert(map).as(PlainDTO.class).to(DtoWithMethods.class) it would try to treat the source

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Leangen
Hi David B., Thanks for this suggestion. That would indeed work nicely. As you say, it requires an extra class, but at least there is very little duplication, at least converting TO something. Converting TO: > Map m = converter.convert(myDtoWithMethods).as(PlainDTO.class).to(Map.class)

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Bosschaert
Hi David L, Recently I added the 'as()' method to the converter, which is really meant to disambiguate source objects. Let's say you have an object that is both a JavaBean as well as implementing an interface. The Converter spec will specify some 'priority' rules for this, but they may not always

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Leangen
Hi David B., Thanks. I think you’re right, the spec is quite clear. If I wanted to treat any class like a DTO (ignore the methods and use only the public fields — just like before the recent changes made to the code base), can you think of any way? Perhaps having “strict” mode to follow the

Re: [Converter] DTOs with methods?

2016-10-18 Thread David Bosschaert
Hi all, The OSGi spec for DTOs is pretty clear. Section 57.2 of the R6 Core spec states: "Data Transfer Objects are public classes with no methods, other than the compiler supplied default constructor" Therefore I would be reluctant to use a different definition for the Converter. OTOH I think

[jira] [Commented] (FELIX-5362) Felix Site Maven Bundle Docs: Add FAQ for using OSGi SCR annotations in unit tests

2016-10-18 Thread Konrad Windszus (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15584800#comment-15584800 ] Konrad Windszus commented on FELIX-5362: We should explicitly mention the incompatibility with

[jira] [Commented] (FELIX-5383) Support parallel bundle starting

2016-10-18 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15584684#comment-15584684 ] Guillaume Nodet commented on FELIX-5383: The Blueprint Extender is supposed to not start bundles