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 services via ResourceLocator.
13 * The ResourceLocator contains the services that this
14 * component depends upon under keys specified in the
15 * components metadata.
16 *
17 * @version $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
18 */
19 public interface Composable
20 {
21 /***
22 * Supply the component with ResourceLocator object
23 * via which they can access any dependency services.
24 *
25 * @param locator the ResourceLocator
26 * @throws MissingResourceException if the ResourceLocator does not
27 * contain all the required services
28 */
29 void compose( ResourceLocator locator )
30 throws MissingResourceException;
31 }