org.jboss.mx.standardmbean
Interface StandardMBeanDelegate

All Superinterfaces:
javax.management.DynamicMBean

public interface StandardMBeanDelegate
extends javax.management.DynamicMBean

A delegate standard mbean.

Version:
$Revision: 1.2 $
Author:
Adrian Brock

Method Summary
 javax.management.MBeanInfo buildMBeanInfo()
          Builds a default MBeanInfo for this MBean, using the Management Interface specified for this MBean.
 void cacheMBeanInfo(javax.management.MBeanInfo info)
          Sets the cached mbean info
 javax.management.MBeanInfo getCachedMBeanInfo()
          Retrieve the cached mbean info
 Object getImplementation()
          Retrieve the implementation object
 Class getMBeanInterface()
          Retrieve the management interface
 void setImplementation(Object implementation)
          Replace the implementation object
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes
 

Method Detail

getImplementation

Object getImplementation()
Retrieve the implementation object

Returns:
the implementation

setImplementation

void setImplementation(Object implementation)
                       throws javax.management.NotCompliantMBeanException
Replace the implementation object

Parameters:
implementation - the new implementation
Throws:
IllegalArgumentException - for a null parameter
javax.management.NotCompliantMBeanException - if the new implementation does not implement the interface supplied at construction

getMBeanInterface

Class getMBeanInterface()
Retrieve the management interface

Returns:
the management interface

getCachedMBeanInfo

javax.management.MBeanInfo getCachedMBeanInfo()
Retrieve the cached mbean info

Returns:
the cached mbean info

cacheMBeanInfo

void cacheMBeanInfo(javax.management.MBeanInfo info)
Sets the cached mbean info

Parameters:
info - the mbeaninfo to cache, can be null to erase the cache

buildMBeanInfo

javax.management.MBeanInfo buildMBeanInfo()
                                          throws javax.management.NotCompliantMBeanException
Builds a default MBeanInfo for this MBean, using the Management Interface specified for this MBean.

Returns:
the default mbean info
Throws:
javax.management.NotCompliantMBeanException - when the mbean is not a standardmbean


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.