Re: Desktop scoping and lifecycles

2013-09-05 Thread Jordi Gerona
maybe you can try to use Onami Lifecycle Dispose support [1] or Lifecycle Management in Governator [2] hth, jordi [1] http://onami.apache.org/lifecycle/org.apache.onami.lifecycle.standard/dispose.html [2] https://github.com/Netflix/governator/wiki/Lifecycle-Management On Wed, Sep 4, 2013 at

Re: Factories

2013-09-03 Thread Jordi Gerona
you can achieve that with a Multibindings [1] and MapBinder [2] In your module: public void configure() { MapBinderString, Service mapbinder = MapBinder.newMapBinder(binder(), String.class, Service.class);

Re: Managing non-obvious Scopes in complex Systems

2013-01-15 Thread Jordi Gerona
On Sun, Jan 13, 2013 at 7:10 PM, Roger Kapsi rka...@gmail.com wrote: The difficulty is that I can't simply slap a @RequestScoped annotation onto them. Why can't you just annotate the type (eg: Account)? If the instance is not constructed by Guice, it will give enough information about the

Re: Testing AOP and method names

2012-12-28 Thread Jordi Gerona
On Wed, Dec 26, 2012 at 9:15 PM, Dirk Nimerem nene1...@sinnlos-mail.dewrote: Hi, Let's say i have a class which represents an user, called User and an interface implemented by this class called IUser. The IUser interface declares one method called sendMail(String text) for the user. Also i