1 /***************************************************************************** 2 * Copyright (C) NanoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 * * 8 *****************************************************************************/ 9 package org.nanocontainer.integrationkit; 10 11 import org.picocontainer.MutablePicoContainer; 12 13 /** 14 * <p> 15 * Interface for populating a container. The concern here is only on the 16 * container to populate and not on the composition or the building. 17 * </p> 18 * <p> 19 * An example of its use can be found in <a HREF="http://nanocontainer.org/nanowar">NanoWar</a> 20 * for container population from multiple web scopes. 21 * </p> 22 * 23 * @author Mauro Talevi 24 */ 25 public interface ContainerPopulator { 26 27 /** 28 * Populate a container 29 * @param container the MutablePicoContainer to populate 30 */ 31 public void populateContainer(MutablePicoContainer container); 32 33 } 34