KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > repository > config > RepositoryConfigFactory


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.repository.config;
8
9
10 import com.inversoft.config.ConfigBuilder;
11 import com.inversoft.config.ConfigFactory;
12 import com.inversoft.config.ConfigRegistry;
13
14
15 /**
16  * <p>
17  * This class is the configuration factory implementation
18  * for the Repository system of the Inversoft Portal
19  * framework.
20  * </p>
21  *
22  * @author Brian Pontarelli
23  * @since 2.0
24  * @version 2.0
25  */

26 public class RepositoryConfigFactory implements ConfigFactory {
27
28     /**
29      * The name that the repository factory is keyed under in the
30      * ConfigFactoryRegistry and used throughout the configuration system
31      */

32     public static final String JavaDoc NAME = "repository";
33
34
35     private RepositoryConfigBuilder builder;
36
37
38     /**
39      * Constructs a new <code>RepositoryConfigFactory</code>.
40      */

41     public RepositoryConfigFactory() {
42         builder = new RepositoryConfigBuilder();
43     }
44
45
46     /**
47      * Returns the class instance of the {@link RepositoryConfigBuilder
48      * RepositoryConfigBuilder}
49      *
50      * @return The class instance of the RepositoryConfigBuilder class
51      */

52     public ConfigBuilder createBuilder() {
53         return builder;
54     }
55
56     /**
57      * Returns a new instance of the {@link RepositoryConfigRegistry
58      * RepositoryConfigRegistry}.
59      *
60      * @return A new instance of the RepositoryConfigRegistry class
61      */

62     public ConfigRegistry createRegistry() {
63         return new RepositoryConfigRegistry();
64     }
65 }
66
Popular Tags