public final class LoadingOrder
extends java.lang.Object
ExtensionPoint.getExtensions()
. Possible values are "first", "last", "before ID" and "after ID" where ID
is another same-type extension ID. Values can be combined in a comma-separated way. E.g. if you wish to plug before some extension XXX
that has "first" as its order, you must be "first, before XXX". The same with "last".Extension ID can be specified in the "id" attribute of corresponding XML element. When you specify order, it's usually a good practice to specify also id, to allow other plugin-writers to plug relatively to your extension.
If some anchor id can't be resolved, the constraint is ignored.
Modifier and Type | Class and Description |
---|---|
static interface |
LoadingOrder.Orderable |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AFTER_STR |
static java.lang.String |
AFTER_STR_OLD |
static LoadingOrder |
ANY |
static java.lang.String |
BEFORE_STR |
static java.lang.String |
BEFORE_STR_OLD |
static LoadingOrder |
FIRST |
static java.lang.String |
FIRST_STR |
static LoadingOrder |
LAST |
static java.lang.String |
LAST_STR |
static java.lang.String |
ORDER_RULE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
static LoadingOrder |
after(java.lang.String id) |
static LoadingOrder |
before(java.lang.String id) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static LoadingOrder |
readOrder(java.lang.String orderAttr) |
static void |
sort(java.util.List<? extends LoadingOrder.Orderable> orderable) |
static void |
sort(LoadingOrder.Orderable [] orderable) |
java.lang.String |
toString() |
public static final java.lang.String FIRST_STR
public static final java.lang.String LAST_STR
public static final java.lang.String BEFORE_STR
public static final java.lang.String BEFORE_STR_OLD
public static final java.lang.String AFTER_STR
public static final java.lang.String AFTER_STR_OLD
public static final java.lang.String ORDER_RULE_SEPARATOR
public static final LoadingOrder ANY
public static final LoadingOrder FIRST
public static final LoadingOrder LAST
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static LoadingOrder before(java.lang.String id)
public static LoadingOrder after(java.lang.String id)
public static void sort(LoadingOrder.Orderable [] orderable)
public static void sort(java.util.List<? extends LoadingOrder.Orderable> orderable)
public static LoadingOrder readOrder(java.lang.String orderAttr)