KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > config > component > AbstractComponentConfigBuilder


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.config.component;
8
9
10 /**
11  * <p>
12  * This class is an abstract implementation of the
13  * ComponentConfigBuilder interface. This provides the
14  * setRegistry method and stores the
15  * ComponentConfigBuilderRegistry in a protected member
16  * variable for use by sub-classes
17  * </p>
18  *
19  * @author Brian Pontarelli
20  * @since 2.0
21  * @version 2.0
22  */

23 public abstract class AbstractComponentConfigBuilder implements ComponentConfigBuilder {
24
25     /**
26      * The ComponentConfigBuilderRegistry
27      */

28     protected ComponentConfigBuilderRegistry registry;
29
30
31     /**
32      * Constructor for AbstractComponentConfigBuilder.
33      */

34     public AbstractComponentConfigBuilder() {
35     }
36
37
38     /**
39      * Gets the ComponentConfigBuilderRegistry into the member variable named
40      * {@link #registry registry}.
41      *
42      * @return The ComponentConfigBuilderRegistry
43      * @see ComponentConfigBuilder#getRegistry()
44      */

45     public ComponentConfigBuilderRegistry getRegistry() {
46         return registry;
47     }
48
49     /**
50      * Sets the ComponentConfigBuilderRegistry into the member variable named
51      * {@link #registry registry}.
52      *
53      * @param registry The ComponentConfigBuilderRegistry
54      * @see ComponentConfigBuilder#setRegistry(ComponentConfigBuilderRegistry)
55      */

56     public void setRegistry(ComponentConfigBuilderRegistry registry) {
57         this.registry = registry;
58     }
59 }
Popular Tags