1
2
3
4
5
6
7
8 package org.codehaus.dna;
9
10 /***
11 * The component implements this interface if it wishes
12 * to be supplied with hierarchial configuration data.
13 *
14 * @version $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
15 */
16 public interface Configurable
17 {
18 /***
19 * Supply the component with configuration data in form
20 * of a Configuration object.
21 *
22 * @param configuration the Configuration object
23 * @throws ConfigurationException if the configuration data
24 * specifies invalid configuration data or fails to
25 * match the expected schema.
26 */
27 void configure( Configuration configuration )
28 throws ConfigurationException;
29 }