Le mercredi 17 décembre 2008 à 09:22 -0800, Henning Schmiedehausen a
écrit :
> Hi,
> 
> handling this though annotations would require Shindig to know where
> to look. The current codebase uses @ImplementedBy which links the
> Interfaces to the default implementations, so you must override them
> (and you must make sure that Kevin's patch to fix the injector is in
> the code base you are using).
> 
> The only way to override this from user code is to use your own custom
> Guice Module, which is what Ben suggested.
> 

It works perfectly well, at least in a limited testing context. I have
created a SimpleServer inspired from EndToEndServer and I can make my
request and retrieve my Person instance from the PersonService. I
noticed that I needed to implement others services too which may be due
to the fact that I did not include defaults in the context. 

What patch are you talking about ? The code base I am using is a mirror
at date fo 2008/11/24. Don't know which revision it is (I did not do the
mirror on the first place and do not manage it).

What about the other part of my question ? Can I implement Person with
my own subclass ? 

Thanks

Arnaud 

PS: I must say that I really enjoyed browsing shindig's codebase (at
leasdt the java part), the code is clear, compact, there are numerous
test cases and sometimes helpful comments. I was able to implement my
service and inject it into the server in an afternoon which seems not
too bad given that I did not have previous exposure to shindig. Great
work !



Ce message et toutes les pièces jointes sont établis à l'attention exclusive de 
leurs destinataires et sont confidentiels. Si vous recevez ce message par 
erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. 
L'internet ne permettant pas d'assurer l'intégrité de ce message, le contenu de 
ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.

Reply via email to