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 retrieving the field's value until injection time rather than eagerly fetching 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 retrieving the field's value until injection time rather than eagerly fetching it at configure time.

        This option is not supported with Provider valued fields.

        Default:
        false

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