On Fri, Jan 9, 2009 at 12:32 AM, Jordan Zimmerman <[email protected]> wrote:

> I have my own service handler similar to JsonDbOpensocialService (called
> MediatedOpensocialService). It's a class that implements
> ActivityService, PersonService, and AppDataService. The class is marked
> with @Singleton and the constructor with @Inject. I've added binds to
> SocialApiGuiceModule.configure():
>
> bind(PersonService.class).to(MediatedOpensocialService.class);
> bind(AppDataService.class).to(MediatedOpensocialService.class);
> bind(ActivityService.class).to(MediatedOpensocialService.class);


You should be providing your own module, not modifying the default one.
Maintaining patches is painful.


>
> I've also changed the @ImplementedBy for the service interfaces.


Why are you changing this? You shouldn't need to modify the interfaces in
any way.


> However, my class never gets created/called. What else do I need to do
> to inject it into Shindig?


Just make sure that your module is declared in the web.xml (or manually
constructed if doing something not web.xml based).

Reply via email to