@Singleton public class AutobindDisable extends Object
HandlerContainerImpl
, such as PresenterWidget
or Presenter
. Simply bind it like this:
bind(AutobindDisable.class).toInstance(new AutobindDisable(true));If you do not bind this class then autobinding is controlled on a case-by-case basis using the
HandlerContainerImpl
's constructors.
Disabling automatic binding can be useful in unit tests, for example.Constructor and Description |
---|
AutobindDisable(boolean disable) |
Copyright © 2010-2014 ArcBees. All Rights Reserved.