| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.seasar.teeda.core.config.faces.assembler; |
| 17 | |
|
| 18 | |
import java.util.Collections; |
| 19 | |
import java.util.Iterator; |
| 20 | |
import java.util.List; |
| 21 | |
|
| 22 | |
import javax.faces.lifecycle.Lifecycle; |
| 23 | |
|
| 24 | |
import org.seasar.teeda.core.util.IteratorUtil; |
| 25 | |
import org.seasar.teeda.core.util.LifecycleUtil; |
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
public abstract class LifecycleChildAssembler implements JsfAssembler { |
| 31 | |
|
| 32 | 4 | private List targetLists_ = Collections.EMPTY_LIST; |
| 33 | |
|
| 34 | 4 | public LifecycleChildAssembler(List targetLists) { |
| 35 | 4 | targetLists_ = targetLists; |
| 36 | 4 | } |
| 37 | |
|
| 38 | |
public void assemble() { |
| 39 | 4 | for (Iterator itr = IteratorUtil.getIterator(targetLists_); itr |
| 40 | 7 | .hasNext();) { |
| 41 | 3 | String targetName = (String) itr.next(); |
| 42 | 3 | doAssemble(targetName); |
| 43 | |
} |
| 44 | 4 | } |
| 45 | |
|
| 46 | |
protected Lifecycle getLifecycle() { |
| 47 | 3 | return LifecycleUtil.getLifecycle(); |
| 48 | |
} |
| 49 | |
|
| 50 | |
protected abstract void doAssemble(String targetName); |
| 51 | |
} |