Package org.springframework.jmx.export
Interface MBeanExportOperations
- All Known Implementing Classes:
- AnnotationMBeanExporter,- MBeanExporter
public interface MBeanExportOperations
Interface that defines the set of MBean export operations that are intended to be
 accessed by application developers during application runtime.
 
This interface should be used to export application resources to JMX using Spring's
 management interface generation capabilities and, optionally, it's ObjectName
 generation capabilities.
- Since:
- 2.0
- Author:
- Rob Harrop
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionregisterManagedResource(Object managedResource) Register the supplied resource with JMX.voidregisterManagedResource(Object managedResource, ObjectName objectName) Register the supplied resource with JMX.voidunregisterManagedResource(ObjectName objectName) Remove the specified MBean from the underlying MBeanServer registry.
- 
Method Details- 
registerManagedResourceRegister the supplied resource with JMX. If the resource is not a valid MBean already, Spring will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration. This call also generates anObjectNamefor the managed resource and returns this to the caller.- Parameters:
- managedResource- the resource to expose via JMX
- Returns:
- the ObjectNameunder which the resource was exposed
- Throws:
- MBeanExportException- if Spring is unable to generate an- ObjectNameor register the MBean
 
- 
registerManagedResourcevoid registerManagedResource(Object managedResource, ObjectName objectName) throws MBeanExportException Register the supplied resource with JMX. If the resource is not a valid MBean already, Spring will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration.- Parameters:
- managedResource- the resource to expose via JMX
- objectName- the- ObjectNameunder which to expose the resource
- Throws:
- MBeanExportException- if Spring is unable to register the MBean
 
- 
unregisterManagedResourceRemove the specified MBean from the underlying MBeanServer registry.- Parameters:
- objectName- the- ObjectNameof the resource to remove
 
 
-