Hey Arnaud,
You can create your own Guice module and, in your Overridden configure
function, bind your service implementations to the interfaces:
this
.bind
(PersonService.class).to(PersonServiceDb.class).in(Scopes.SINGLETON);
Then add your Guice module to the ones referenced by the web.xml
Hope that helps,
Ben
BBC
On 17 Dec 2008, at 15:20, <[email protected]> wrote:
Hello,
I have a custom PersonService that I want to use to construct Person
instances from a remote service. I have a couple of questions
regarding
that:
- Is it possible to override the default Person (and others) model
from
opensocial api ?
- How can I make my person service override the default within my
shindig webapp ? I guess this is done through DI with Guice but I am
not
familiar with that framework. Is this done automagically by declaring
the appropriate modules at start of webapp ?
Regards,
ARnaud
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.