com.google.inject.testing.fieldbinder

Annotation Type Bind

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      boolean lazy
      If true, BoundFieldModule will delay reading the field until injection time rather than eagerly reading it at configure time.
      Class<?> to
      If specified, BoundFieldModule will bind the annotated field's value to this type, rather than to the field's actual type.
    • Element Detail

      • to

        public abstract Class<?> to
        If specified, BoundFieldModule will bind the annotated field's value to this type, rather than to the field's actual type.
        Default:
        com.google.inject.testing.fieldbinder.Bind.class
      • lazy

        public abstract boolean lazy
        If true, BoundFieldModule will delay reading the field until injection time rather than eagerly reading it at configure time.

        When used with Provider valued fields, the provider will be read from the field and .get() will be called for each provision. This may be useful for testing provision failures.

        Default:
        false

Copyright © 2006-2016 Google, Inc.. All Rights Reserved.