Ordering.AbsoluteOrdering, Ordering.RelativeOrdering
Modifier and Type | Field and Description |
---|---|
protected LinkedList<Resource> |
_afterOthers |
protected LinkedList<Resource> |
_beforeOthers |
protected MetaData |
_metaData |
protected LinkedList<Resource> |
_noOthers |
Constructor and Description |
---|
Ordering.RelativeOrdering(MetaData metaData) |
Modifier and Type | Method and Description |
---|---|
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) |
protected MetaData _metaData
protected LinkedList<Resource> _beforeOthers
protected LinkedList<Resource> _afterOthers
protected LinkedList<Resource> _noOthers
public Ordering.RelativeOrdering(MetaData metaData)
public List<Resource> order(List<Resource> jars)
order
in interface Ordering
Ordering.order(java.util.List)
public boolean isAbsolute()
isAbsolute
in interface Ordering
public void addBeforeOthers(Resource r)
public void addAfterOthers(Resource r)
public void addNoOthers(Resource r)
protected boolean orderList(LinkedList<Resource> list)
protected boolean isBefore(List<Resource> list, String fragNameA, String fragNameB)
list
- fragNameA
- fragNameB
- protected boolean isAfter(List<Resource> list, String fragNameA, String fragNameB)
list
- fragNameA
- fragNameB
- protected void insert(List<Resource> list, int index, String fragName)
list
- index
- fragName
- Copyright © 1995-2015 Webtide. All Rights Reserved.