KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.jdom.Element;
11
12 import com.inversoft.config.ConfigurationException;
13 import com.inversoft.config.component.ComponentConfigBuilder;
14
15
16 /**
17  * This interface is must be implemented by all builders of
18  * repository items. Generally it is a good idea to extend
19  * from the ItemBuilder class.
20  *
21  * @author Brian Pontarelli
22  * @since 2.0
23  */

24 public interface Builder extends ComponentConfigBuilder {
25
26     /**
27      * Builds the repository items from the given Element and stores them
28      * in the given Map.
29      *
30      * @param element The Element to build the items from
31      * @param registry The RepositoryConfigRegistry to store the items in
32      * @throws ConfigurationException If anything went wrong while building
33      */

34     void build(Element element, RepositoryConfigRegistry registry)
35     throws ConfigurationException;
36 }
37
Popular Tags