Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.picocontainer.gems.jmx
Class ComponentKeyConventionMBeanInfoProvider

    java.lang.Object
      org.picocontainer.gems.jmx.AbstractNamingConventionMBeanInfoProvider
          org.picocontainer.gems.jmx.ComponentKeyConventionMBeanInfoProvider

All Implemented Interfaces:
  MBeanInfoProvider

    public class ComponentKeyConventionMBeanInfoProvider

extends AbstractNamingConventionMBeanInfoProvider

A MBeanInfoProvider that searches for a MBeanInfo instance in the PicoContainer. Keys of both components follow naming conventions.

Author:
  Jörg Schaible

Constructor Summary
`ComponentKeyConventionMBeanInfoProvider()`

Method Summary
`MBeanInfo` | `provide(org.picocontainer.PicoContainer picoContainer, org.picocontainer.ComponentAdapter componentAdapter)` Use the key of the component to search for a MBeanInfo in the PicoContainer.

Methods inherited from class org.picocontainer.gems.jmx.AbstractNamingConventionMBeanInfoProvider
`instantiateMBeanInfo`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ComponentKeyConventionMBeanInfoProvider

    public ComponentKeyConventionMBeanInfoProvider()

Method Detail

### provide

    public MBeanInfo provide(org.picocontainer.PicoContainer picoContainer,
                             org.picocontainer.ComponentAdapter componentAdapter)

  Use the key of the component to search for a MBeanInfo in the PicoContainer. The matching MBeanInfo must be stored in the PicoContainer. The key of the MBeanInfo follows the naming scheme "<ComponentKey>MBeanInfo". The the component's key is a type, the class name is used as prefix otherwise the string representation of the key. The key part may already end with "MBean" as it would for components registered with the management interface as key, that follow the JMX naming conventions. As last resort the calculated key of the MBeanInfo is turned into a type that is used again as lookup key.

  Parameters:
    `picoContainer` - The picoContainer to resolve dependencies or other services necessary to get the MBeanInfo.
    `componentAdapter` - The ComponentAdapter of the component.
  Returns:
    Returns the MBeanInfo for the compoennt or `null` if none could be found or created.
  See Also:
    `MBeanInfoProvider.provide(org.picocontainer.PicoContainer, org.picocontainer.ComponentAdapter)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 Codehaus. All Rights Reserved.