Hi David B., Thank you, you helped me find the problem. :-)
Turns out I was mixing this up with the “old” enRoute implementation. All good now. Cheers, =David > On Aug 11, 2016, at 6:19 PM, David Bosschaert <[email protected]> > wrote: > > Hi David, > > Thanks for pinging here :) > > The converter can convert to/from DTOs (BTW this part is not very well > tested yet) but it does not implement the enroute DTO API. Not sure why it > should? > > Basically the way you'd use the converter with DTOs would be for example to > convert a key/value map into a DTO. > > So that would look like this: > MyDTO dto = converter.convert(myMap).to(MyDTO.class); > or the other way around: > Map m = converter.convert(dto).to(Map.class); > > You can use any DTO from anywhere, including ones from Enroute... > > What is it that you think it should provide in addition? > > Thanks, > > David > > On 11 August 2016 at 10:12, David Leangen <[email protected]> wrote: > >> >> Hi! >> >> I am very interested in the Converter. As David B. requested on the >> bndtools list, I am writing here for questions/comments. There will surely >> be more to come, but here is the first. >> >> I tried replacing the enRoute version of DTOs with the Felix version, but >> the system does not resolve. I noticed that there is no Provide-Capability >> for “osgi.enroute.dto.api". >> >> Here is the Manifest I get when I build the bundle locally: >> >>> Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt >>> Bundle-ManifestVersion: 2 >>> Bundle-Name: Apache Felix Converter Service >>> Bundle-SymbolicName: org.apache.felix.converter >>> Bundle-Vendor: The Apache Software Foundation >>> Bundle-Version: 0.1.0.SNAPSHOT >>> Created-By: Apache Maven Bundle Plugin >>> Export-Package: org.osgi.service.converter;version="1.0",org.osgi.servic >>> e.converter.util;version="1.0";uses:="org.osgi.service.converter" >>> Implementation-Title: Apache Felix Converter Service >>> Implementation-Vendor: The Apache Software Foundation >>> Implementation-Vendor-Id: org.apache.felix >>> Implementation-Version: 0.1-SNAPSHOT >>> Import-Package: org.osgi.framework;version="[1.8,2)",org.osgi.service.co >>> nverter;version="[1.0,2)" >>> Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" >>> Specification-Title: Apache Felix Converter Service >>> Specification-Vendor: The Apache Software Foundation >>> Specification-Version: 0.1-SNAPSHOT >>> Tool: Bnd-2.3.0.201405100607 >> >> Is this a small oversight? Or am I misunderstanding something? I thought >> that this is supposed to implement DTOs, so shouldn’t it provide that >> capability? >> >> >> Thanks! >> =David >> >> >>
