org.picocontainer.gems.jmx
Class TypedObjectNameFactory
java.lang.Object
org.picocontainer.gems.jmx.AbstractObjectNameFactory
org.picocontainer.gems.jmx.TypedObjectNameFactory
- All Implemented Interfaces:
- ObjectNameFactory
public class TypedObjectNameFactory
- extends AbstractObjectNameFactory
An ObjectNameFactory, that uses the type of the DynamicMBean
implementation to register. The value of the
type is the name of the implementation class without the package name.
- Author:
- Jörg Schaible
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypedObjectNameFactory
public TypedObjectNameFactory()
- Construct a TypedObjectNameFactory using the default domain. Using
TypedObjectNameFactory(null)
is
equivalent.
TypedObjectNameFactory
public TypedObjectNameFactory(String domain)
- Construct a TypedObjectNameFactory with a predefined domain.
- Parameters:
domain
- The domain.
create
public ObjectName create(Object key,
DynamicMBean mBean)
throws MalformedObjectNameException
- Create an
ObjectName
with the class name of the MBean implementation as key type.
- Parameters:
key
- The key of the component within PicoContainer.mBean
- The instance of the DynamicMBean.
- Returns:
- Returns the Object Name for the DynamicMBean.
- Throws:
MalformedObjectNameException
- Thrown for an invalid part in the ObjectName
.- See Also:
ObjectNameFactory.create(java.lang.Object, javax.management.DynamicMBean)
Copyright © 2003-2010 Codehaus. All Rights Reserved.