@Retention(value=RUNTIME) @Documented @Target(value=TYPE) public @interface LcdService
service()
element is required to specify the contract type name.
The annotation also has an optional priority()
element that can be used to order
the services.
10000
HIGH_PRIORITY
, DEFAULT_PRIORITY
,
LOW_PRIORITY
and FALLBACK_PRIORITY
The annotation is retained at runtime.
The TLcdServiceAnnotationProcessor
processes these annotations to automatically
create corresponding files in the META-INF/services folders at compile time.
TLcdServiceLoader
Modifier and Type | Fields and Description |
---|---|
static int |
DEFAULT_PRIORITY
Default priority.
|
static int |
FALLBACK_PRIORITY
Fallback priority.
|
static int |
HIGH_PRIORITY
High priority.
|
static int |
LOW_PRIORITY
Low priority.
|
public abstract Class service