public interface ServiceProvider implements AnnotationSpecifies the precedence that ServiceFactoryFactory gives to the annotated FactoryProvider.
Implements
AnnotationStatic 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<?> |
|