1 /***************************************************************************** 2 * Copyright (C) PicoContainer 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 10 package org.picocontainer.defaults; 11 12 import org.picocontainer.ComponentMonitor; 13 14 /** 15 * <p> 16 * Interface responsible for changing monitoring strategy. 17 * It may be implemented by {@link PicoContainer containers} and 18 * single {@link ComponentAdapter component adapters}. 19 * The choice of supporting the monitor strategy is left to the 20 * implementers of the container and adapters. 21 * </p> 22 * 23 * @author Paul Hammant 24 * @author Joerg Schaible 25 * @author Mauro Talevi 26 * @version $Revision: $ 27 * @since 1.2 28 */ 29 public interface ComponentMonitorStrategy { 30 31 /** 32 * Changes the component monitor used 33 * @param monitor the new ComponentMonitor to use 34 */ 35 void changeMonitor(ComponentMonitor monitor); 36 37 /** 38 * Returns the monitor currently used 39 * @return The ComponentMonitor currently used 40 */ 41 ComponentMonitor currentMonitor(); 42 43 } 44