-
- All Implemented Interfaces:
public class DiConstants
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerLIB_PRIMARY_PRIORITYpublic final static DiConstantsINSTANCE
-
Method Summary
Modifier and Type Method Description final IntegergetLIB_PRIMARY_PRIORITY()We want to use DI framework-agnostic setup, that's why we use Priority instead of spring's @Primaryannotation.-
-
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
@Primaryannotation. 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.
-
-
-
-