KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > config > TestLifecycleFactory


1 /*
2  * Copyright 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.config;
17
18 import java.util.Iterator JavaDoc;
19 import javax.faces.FacesException;
20 import javax.faces.lifecycle.Lifecycle;
21 import javax.faces.lifecycle.LifecycleFactory;
22
23
24 /**
25  * @author <a HREF="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
26  */

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 JavaDoc id, Lifecycle lifecycle)
45     {
46         delegate.addLifecycle(id, lifecycle);
47     }
48
49
50     public Lifecycle getLifecycle(String JavaDoc id) throws FacesException
51     {
52         return delegate.getLifecycle(id);
53     }
54
55
56     public Iterator JavaDoc getLifecycleIds()
57     {
58         return delegate.getLifecycleIds();
59     }
60
61
62     public LifecycleFactory getDelegate()
63     {
64         return delegate;
65     }
66 }
67
Popular Tags