|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.listener.OrderedComposite<S>
S - the type of the itempublic class OrderedComposite<S>
Composite item which can be used in other components which may want to allow automatic and annotation based ordering. Good use case is a list of listeners where user may want to place some of them to be processed before the others.
| Constructor Summary | |
|---|---|
OrderedComposite()
|
|
| Method Summary | |
|---|---|
void |
add(S item)
Register additional item. |
Iterator<S> |
iterator()
Public getter for the list of items. |
Iterator<S> |
reverse()
Public getter for the list of items in reverse. |
void |
setItems(List<? extends S> items)
Public setter for the listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderedComposite()
| Method Detail |
|---|
public void setItems(List<? extends S> items)
items - itemspublic void add(S item)
item - itempublic Iterator<S> iterator()
Ordered items come
first, followed by any unordered ones.
public Iterator<S> reverse()
Ordered items
come last, after any unordered ones.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||