Package com.luciad.util.service
Annotation Interface LcdService
Indicates that the annotated class should be listed into the META-INF/services/CONTRACTNAME.
- If the class for which this annotation is placed only has one base class or one interface, then the CONTRACTNAME is the fully qualified name of that type.
-
Otherwise, the
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.
- Default is
10000
- Higher values mean lower priority
- Lower (up to and including zero) values mean higher priority
- Built-in values are
HIGH_PRIORITY
,DEFAULT_PRIORITY
,LOW_PRIORITY
andFALLBACK_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.
- Since:
- 2013.0
- See Also:
-
Optional Element Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default priority.static final int
Fallback priority.static final int
High priority.static final int
Low priority.
-
Field Details
-
HIGH_PRIORITY
static final int HIGH_PRIORITYHigh priority.- See Also:
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority.- See Also:
-
LOW_PRIORITY
static final int LOW_PRIORITYLow priority.- See Also:
-
FALLBACK_PRIORITY
static final int FALLBACK_PRIORITYFallback priority.- See Also:
-
-
Element Details
-
service
Class serviceReturns the service class.- Returns:
- the service class.
- Default:
void.class
-
priority
int priorityReturns the specified priority. Lower values mean higher priority.- Returns:
- the specified priority.
- Default:
10000
-