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: How do I inject Mock classes for all subclasses of particular class

2013-09-05 Thread Nate Bauernfeind
I think I might misunderstand what you're having trouble with. Doesn't the mock method take a class object too? i.e. something like this: bind(cls).toInstance(mock(cls))? On Wed, Sep 4, 2013 at 10:08 AM, David Parish dpar...@gmail.com wrote: I looked at that (and crawled the classes). I'm