org.eclipse.jetty.webapp
类 Ordering.RelativeOrdering
java.lang.Object
org.eclipse.jetty.webapp.Ordering.RelativeOrdering
- 所有已实现的接口:
- Ordering
- 正在封闭接口:
- Ordering
public static class Ordering.RelativeOrdering
- extends Object
- implements Ordering
RelativeOrdering
A set of <order> elements in web-fragment.xmls.
|
方法摘要 |
void |
addAfterOthers(Resource r)
|
void |
addBeforeOthers(Resource r)
|
void |
addNoOthers(Resource r)
|
protected int |
getIndexOf(List<Resource> resources,
String fragmentName)
|
boolean |
hasOther()
|
protected void |
insert(List<Resource> list,
int index,
Resource resource)
|
protected void |
insert(List<Resource> list,
int index,
String fragName)
Insert the resource matching the fragName into the list of resources
at the location indicated by index. |
boolean |
isAbsolute()
|
protected boolean |
isAfter(List<Resource> list,
String fragNameA,
String fragNameB)
Is fragment name "a" after fragment name "b"? |
protected boolean |
isBefore(List<Resource> list,
String fragNameA,
String fragNameB)
Is fragment with name a before fragment with name b? |
List<Resource> |
order(List<Resource> jars)
Order the list of jars according to the ordering declared
in the various web-fragment.xml files. |
protected boolean |
orderList(LinkedList<Resource> list)
|
protected void |
remove(List<Resource> resources,
Resource r)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_metaData
protected MetaData _metaData
_beforeOthers
protected LinkedList<Resource> _beforeOthers
_afterOthers
protected LinkedList<Resource> _afterOthers
_noOthers
protected LinkedList<Resource> _noOthers
Ordering.RelativeOrdering
public Ordering.RelativeOrdering(MetaData metaData)
order
public List<Resource> order(List<Resource> jars)
- Order the list of jars according to the ordering declared
in the various web-fragment.xml files.
- 指定者:
- 接口
Ordering 中的 order
- 另请参见:
Ordering.order(java.util.List)
isAbsolute
public boolean isAbsolute()
- 指定者:
- 接口
Ordering 中的 isAbsolute
hasOther
public boolean hasOther()
- 指定者:
- 接口
Ordering 中的 hasOther
addBeforeOthers
public void addBeforeOthers(Resource r)
addAfterOthers
public void addAfterOthers(Resource r)
addNoOthers
public void addNoOthers(Resource r)
orderList
protected boolean orderList(LinkedList<Resource> list)
isBefore
protected boolean isBefore(List<Resource> list,
String fragNameA,
String fragNameB)
- Is fragment with name a before fragment with name b?
- 参数:
list - fragNameA - fragNameB -
- 返回:
- true if fragment name A is before fragment name B
isAfter
protected boolean isAfter(List<Resource> list,
String fragNameA,
String fragNameB)
- Is fragment name "a" after fragment name "b"?
- 参数:
list - fragNameA - fragNameB -
- 返回:
- true if fragment name A is after fragment name B
insert
protected void insert(List<Resource> list,
int index,
String fragName)
- Insert the resource matching the fragName into the list of resources
at the location indicated by index.
- 参数:
list - index - fragName -
insert
protected void insert(List<Resource> list,
int index,
Resource resource)
remove
protected void remove(List<Resource> resources,
Resource r)
getIndexOf
protected int getIndexOf(List<Resource> resources,
String fragmentName)
Copyright © 2013. All Rights Reserved.