Class 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 Detail

      • WithPermits

        protected WithPermits​(Object instance)