01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: *****************************************************************************/package org.picocontainer;
09:
10: /**
11: * <p>
12: * Interface responsible for changing monitoring strategy.
13: * It may be implemented by {@link org.picocontainer.PicoContainer containers} and
14: * single {@link org.picocontainer.ComponentAdapter component adapters}.
15: * The choice of supporting the monitor strategy is left to the
16: * implementers of the container and adapters.
17: * </p>
18: *
19: * @author Paul Hammant
20: * @author Joerg Schaible
21: * @author Mauro Talevi
22: */
23: public interface ComponentMonitorStrategy {
24:
25: /**
26: * Changes the component monitor used
27: * @param monitor the new ComponentMonitor to use
28: */
29: void changeMonitor(ComponentMonitor monitor);
30:
31: /**
32: * Returns the monitor currently used
33: * @return The ComponentMonitor currently used
34: */
35: ComponentMonitor currentMonitor();
36:
37: }
|