Composable.java :  » Inversion-of-Control » DNA » org » codehaus » dna » Java Open Source

Java Open Source » Inversion of Control » DNA 
DNA » org » codehaus » dna » Composable.java
/*
 * Copyright (C) The DNA Group. All rights reserved.
 *
 * This software is published under the terms of the DNA
 * Software License version 1.1, a copy of which has been included
 * with this distribution in the LICENSE.txt file.
 */
package org.codehaus.dna;

/**
 * The component implements this interface if it wishes
 * to be supplied with services via ResourceLocator.
 * The ResourceLocator contains the services that this
 * component depends upon under keys specified in the
 * components metadata.
 *
 * @version $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
 */
public interface Composable
{
    /**
     * Supply the component with ResourceLocator object
     * via which they can access any dependency services.
     *
     * @param locator the ResourceLocator
     * @throws MissingResourceException if the ResourceLocator does not
     *         contain all the required services
     */
    void compose( ResourceLocator locator )
        throws MissingResourceException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.