Annotation Type ServiceProvider (2.0.0)

public interface ServiceProvider implements Annotation

Specifies the precedence that ServiceFactoryFactory gives to the annotated FactoryProvider.

Implements

Annotation

Static Fields

DEFAULT_PRECEDENCE

public static final int DEFAULT_PRECEDENCE
Field Value
Type Description
int

Methods

precedence()

public abstract int precedence()

Higher precedence will take priority over lower precedences for a given interface.

Returns
Type Description
int

value()

public abstract Class<?> value()

Returns the interface implemented by this ServiceProvider. This is present for compatibility reasons but should always be FactoryProvider, which is the default.

Returns
Type Description
Class<?>