KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > dna > Composable


1 /*
2  * Copyright (C) The DNA Group. All rights reserved.
3  *
4  * This software is published under the terms of the DNA
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
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 }
32
Popular Tags