Class BoundFieldModule.WithPermits

  • java.lang.Object
    • com.google.inject.AbstractModule
      • com.google.inject.testing.fieldbinder.BoundFieldModule.WithPermits
  • All Implemented Interfaces:
    com.google.inject.Module
    Enclosing class:
    BoundFieldModule

    public static class BoundFieldModule.WithPermits
    extends com.google.inject.AbstractModule
    Wrapper of BoundFieldModule which enables attaching {@link @RestrictedBindingSource} permits to instances of it.

    To create an instance of BoundFieldModule with permits (to enable it to bind restricted bindings), create an instance of an anonymous class extending this one and annotate it with those permits. For example: new @Permit1 @Permit2 BoundFieldModule.WithPermits(instance) {}.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WithPermits​(Object instance)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure()  
      • Methods inherited from class com.google.inject.AbstractModule

        addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
    • Constructor Detail

      • WithPermits

        protected WithPermits​(Object instance)
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule