KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > util > url > config > URLConfigFactory


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.util.url.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 for the URL
18  * configuration.
19  * </p>
20  *
21  * @author Brian Pontarelli
22  * @since 2.0
23  * @version 2.0
24  */

25 public class URLConfigFactory implements ConfigFactory {
26
27     private URLConfigBuilder builder = new URLConfigBuilder();
28
29
30     /**
31      * Constructor for URLConfigFactory.
32      */

33     public URLConfigFactory() {
34         // Empty
35
}
36
37
38     /**
39      * @see com.inversoft.config.ConfigFactory#createBuilder()
40      */

41     public ConfigBuilder createBuilder() {
42         return builder;
43     }
44
45     /**
46      * @see com.inversoft.config.ConfigFactory#createRegistry()
47      */

48     public ConfigRegistry createRegistry() {
49         return new URLConfigRegistry();
50     }
51
52 }
53
Popular Tags