KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > config > impl > digester > elements > Factory


1 /*
2  * Copyright 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.impl.digester.elements;
17
18 import java.util.List JavaDoc;
19 import java.util.ArrayList JavaDoc;
20
21
22 /**
23  * @author <a HREF="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
24  */

25 public class Factory
26 {
27
28     private List JavaDoc applicationFactory = new ArrayList JavaDoc();
29     private List JavaDoc facesContextFactory = new ArrayList JavaDoc();
30     private List JavaDoc lifecycleFactory = new ArrayList JavaDoc();
31     private List JavaDoc renderkitFactory = new ArrayList JavaDoc();
32
33     public void addApplicationFactory(String JavaDoc factory)
34     {
35         applicationFactory.add(factory);
36     }
37
38
39     public void addFacesContextFactory(String JavaDoc factory)
40     {
41         facesContextFactory.add(factory);
42     }
43
44
45     public void addLifecycleFactory(String JavaDoc factory)
46     {
47         lifecycleFactory.add(factory);
48     }
49
50
51     public void addRenderkitFactory(String JavaDoc factory)
52     {
53         renderkitFactory.add(factory);
54     }
55
56
57     public List JavaDoc getApplicationFactory()
58     {
59         return applicationFactory;
60     }
61
62
63     public List JavaDoc getFacesContextFactory()
64     {
65         return facesContextFactory;
66     }
67
68
69     public List JavaDoc getLifecycleFactory()
70     {
71         return lifecycleFactory;
72     }
73
74
75     public List JavaDoc getRenderkitFactory()
76     {
77         return renderkitFactory;
78     }
79 }
80
Popular Tags