01: /*****************************************************************************
02: * Copyright (C) NanoContainer 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: * Original code by Joerg Schaible *
09: *****************************************************************************/package org.picocontainer.gems.jmx;
10:
11: import javax.management.DynamicMBean;
12:
13: import org.picocontainer.ComponentAdapter;
14: import org.picocontainer.PicoContainer;
15:
16: /**
17: * Provide instances of DynamicMBean from Pico components.
18: * @author Jörg Schaible
19: */
20: public interface DynamicMBeanProvider {
21:
22: /**
23: * Provide a {@link DynamicMBean} from the component delivered by the ComponentAdapter.
24: * @param picoContainer The {@link PicoContainer} to resolve dependencies.
25: * @param componentAdapter The {@link ComponentAdapter} referring the component.
26: * @return Returns the registration information.
27: */
28: public JMXRegistrationInfo provide(PicoContainer picoContainer,
29: ComponentAdapter componentAdapter);
30: }
|