KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > form > config > FormMVCConfigFactory


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.controller.form.config;
8
9
10 import com.inversoft.config.ConfigBuilder;
11 import com.inversoft.config.ConfigFactory;
12 import com.inversoft.config.ConfigRegistry;
13 import com.inversoft.config.ConfigurationException;
14
15
16 /**
17  * <p>
18  * This class is the ConfigFactory for the Form based MVC
19  * component of the Inversoft Portal framework.
20  * </p>
21  *
22  * @author Brian Pontarelli
23  * @since 2.0
24  * @version 2.0
25  */

26 public class FormMVCConfigFactory implements ConfigFactory {
27
28     private FormMVCConfigBuilder builder;
29
30
31     /**
32      * Constructs a new <code>FormConfigFactory</code>.
33      */

34     public FormMVCConfigFactory() throws ConfigurationException {
35         builder = new FormMVCConfigBuilder();
36     }
37
38
39     /**
40      * <p>
41      * Returns the {@link FormMVCConfigBuilder FormMVCConfigBuilder} instance
42      * that is stored as a member of this class. This instance is returns for
43      * multiple calls to this method.
44      * </p>
45      *
46      * @return The FormConfigBuilder and never null
47      */

48     public ConfigBuilder createBuilder() {
49         return builder;
50     }
51
52     /**
53      * <p>
54      * Returns a new {@link FormMVCConfigRegistry FormMVCConfigRegistry} instance
55      * which can be used for the singleton instance of that class.
56      * </p>
57      *
58      * @return A new FormMVCConfigRegistry or never null
59      */

60     public ConfigRegistry createRegistry() {
61         return new FormMVCConfigRegistry();
62     }
63 }
64
Popular Tags