org.jboss.mx.standardmbean
Interface StandardMBeanDelegate

All Superinterfaces:
DynamicMBean

public interface StandardMBeanDelegate
extends DynamicMBean

A delegate standard mbean.

Version:
$Revision: 81019 $
Author:
Adrian Brock

Method Summary
 MBeanInfo buildMBeanInfo()
          Builds a default MBeanInfo for this MBean, using the Management Interface specified for this MBean.
 void cacheMBeanInfo(MBeanInfo info)
          Sets the cached mbean info
 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 NotCompliantMBeanException
Replace the implementation object

Parameters:
implementation - the new implementation
Throws:
IllegalArgumentException - for a null parameter
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

MBeanInfo getCachedMBeanInfo()
Retrieve the cached mbean info

Returns:
the cached mbean info

cacheMBeanInfo

void cacheMBeanInfo(MBeanInfo info)
Sets the cached mbean info

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

buildMBeanInfo

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

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.