1 16 package org.apache.myfaces.config; 17 18 import java.util.Iterator ; 19 import javax.faces.FacesException; 20 import javax.faces.lifecycle.Lifecycle; 21 import javax.faces.lifecycle.LifecycleFactory; 22 23 24 27 public class TestLifecycleFactory extends LifecycleFactory 28 { 29 private LifecycleFactory delegate; 30 31 32 public TestLifecycleFactory(LifecycleFactory delegate) 33 { 34 this.delegate = delegate; 35 } 36 37 38 public TestLifecycleFactory() 39 { 40 super(); 41 } 42 43 44 public void addLifecycle(String id, Lifecycle lifecycle) 45 { 46 delegate.addLifecycle(id, lifecycle); 47 } 48 49 50 public Lifecycle getLifecycle(String id) throws FacesException 51 { 52 return delegate.getLifecycle(id); 53 } 54 55 56 public Iterator getLifecycleIds() 57 { 58 return delegate.getLifecycleIds(); 59 } 60 61 62 public LifecycleFactory getDelegate() 63 { 64 return delegate; 65 } 66 } 67 | Popular Tags |