01: /*
02: * Copyright (C) The DNA Group. All rights reserved.
03: *
04: * This software is published under the terms of the DNA
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna;
09:
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: * Supply the component with configuration data in form
19: * of a Configuration object.
20: *
21: * @param configuration the Configuration object
22: * @throws ConfigurationException if the configuration data
23: * specifies invalid configuration data or fails to
24: * match the expected schema.
25: */
26: void configure(Configuration configuration)
27: throws ConfigurationException;
28: }
|