org.picocontainer.gems.jmx
Class PredefinedObjectNameFactory

java.lang.Object
  extended by org.picocontainer.gems.jmx.PredefinedObjectNameFactory
All Implemented Interfaces:
ObjectNameFactory

public class PredefinedObjectNameFactory
extends Object
implements ObjectNameFactory

An ObjectNameFactory, that uses the key of the Pico component as ObjectName, if the key is of this type.

Author:
Jörg Schaible

Constructor Summary
PredefinedObjectNameFactory()
           
 
Method Summary
 ObjectName create(Object key, DynamicMBean mBean)
          Return the key if it is an ObjectName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredefinedObjectNameFactory

public PredefinedObjectNameFactory()
Method Detail

create

public ObjectName create(Object key,
                         DynamicMBean mBean)
Return the key if it is an ObjectName.

Specified by:
create in interface ObjectNameFactory
Parameters:
key - The key of the component within PicoContainer.
mBean - The instance of the DynamicMBean.
Returns:
Returns the Object Name for the DynamicMBean.
See Also:
ObjectNameFactory.create(java.lang.Object, javax.management.DynamicMBean)


Copyright © 2003-2010 Codehaus. All Rights Reserved.