Annotation Interface GuiceModules

Record Components:
modules - the array of Module for create injector
overrides - the array of Module for override bindings in modules (not required value)

@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface GuiceModules
An annotation to use with JUnitGuiceRunner or ParameterizedJUnitGuiceRunner to specify an arrays of Guice modules.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    Returns an array of Module to create injector, cannot be null.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Returns an array of Module to override bindings from modules(), cannot be null.
  • Element Details

    • modules

      Class<?>[] modules
      Returns an array of Module to create injector, cannot be null.
      Returns:
      an array of Module to create injector, cannot be null
    • overrides

      Class<?>[] overrides
      Returns an array of Module to override bindings from modules(), cannot be null.
      Returns:
      an array of Module to override bindings from modules(), cannot be null
      Default:
      {}