Class BoundFieldModule.WithPermits
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- com.google.inject.testing.fieldbinder.BoundFieldModule.WithPermits
-
- All Implemented Interfaces:
Module
- Enclosing class:
- BoundFieldModule
public static class BoundFieldModule.WithPermits extends 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) {}
.- Since:
- 5.0
-
-
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 classAbstractModule
-
-