Package 

Object DiConstants

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getLIB_PRIMARY_PRIORITY() We want to use DI framework-agnostic setup, that's why we use Priority instead of spring's @Primary annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getLIB_PRIMARY_PRIORITY

         final Integer getLIB_PRIMARY_PRIORITY()

        We want to use DI framework-agnostic setup, that's why we use Priority instead of spring's @Primary annotation. E.g. library test implementation of particular service should have more priority than production implementation.

        However, we can't exclude a possibility that end application would like to use its own implementation as primary. That's why we don't want to use Int.MAX_VALUE for library primary implementation.

        This constant defines priority to use for library primary implementations.