| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(ServiceReference<?> o1, ServiceReference<?> o2)
Implements java. Compares its two arguments for order. |
| public static int | Returns: a priority, by default 1.the instance, not o)null.Checks the given instance for a @Priority annotation. |
| public static int | Returns: a priority, by default 1.the type, not type)null.Checks the given type optionally annotated with a @Priority. |
| OSGIServiceComparator | back to summary |
|---|---|
| pack-priv OSGIServiceComparator() | |
| compare | back to summary |
|---|---|
| public int compare(ServiceReference<?> o1, ServiceReference<?> o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getPriority | back to summary |
|---|---|
| public static int getPriority(Object o) Checks the given instance for a @Priority annotation. If present the annotation's value is evaluated. If no such
annotation is present, a default priority
| |
| getPriority | back to summary |
|---|---|
| public static int getPriority(Class<?> type) Checks the given type optionally annotated with a @Priority. If present the annotation's value is evaluated.
If no such annotation is present, a default priority
| |