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 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: * Supply the component with ResourceLocator object
22: * via which they can access any dependency services.
23: *
24: * @param locator the ResourceLocator
25: * @throws MissingResourceException if the ResourceLocator does not
26: * contain all the required services
27: */
28: void compose(ResourceLocator locator)
29: throws MissingResourceException;
30: }
|