Hi Dan,

Thanks for the report. This has just been fixed in SVN trunk.

To register a custom/customized converter helper, you can manually call:

   Engine.getInstance().getRegisteredConverters().add(0, new MyConverter());

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com



-----Message d'origine-----
De : simpsond [mailto:[email protected]] 
Envoyé : lundi 15 mars 2010 23:07
À : [email protected]
Objet : XStream Annotations

When using the xstream extension with restlet, the xstream annotations which
are linked-to in the wiki page
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/264-restlet.html are
not acknowledged.  After drilling into the code, we noticed that the auto
detection of annotations is not enabled or configurable with restlet.

I feel that it should be configurable or be enabled by default, and it's as
simple as:

XStream stream = new Xstream();
stream.autodetectAnnotations(true);

...

Am I missing something here?  How can I get this working without creating my
own ConverterHelper and overriding Xstream extension classes.

Thanks,
Dan


-- 
View this message in context:
http://n2.nabble.com/XStream-Annotations-tp4740207p4740207.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24601
88

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2591484

Reply via email to