Annotation Type Primary
@Target({PARAMETER,FIELD,METHOD})
@Retention(RUNTIME)
@Documented
@UseWith(SERVICE)
public @interface Primary
Marker annotation used to denote a service that is the primary instance of some common interface. This is often used
when a service is a chain of command or
strategy-based and, therefore, many services will
implement the
same interface.