| |
|
| java.lang.Object org.jboss.mx.metadata.MBeanInfoConversion
MBeanInfoConversion | public class MBeanInfoConversion implements ModelMBeanConstants(Code) | | Routines for converting MBeanInfo to ModelMBeanInfoSupport and stripping
ModelMBeanOperationInfos that are referred to in ModelMBeanAttributeInfos.
author: Juha Lindfors. version: $Revision: 57200 $ |
Method Summary | |
public static ModelMBeanInfoSupport | stripAttributeOperations(ModelMBeanInfo info, boolean stripAllRoles) Returns a ModelMBeanInfoSupport where ModelMBeanOperationInfos that are
referred to by ModelMBeanAttributeInfo getMethod or setMethod descriptor
fields are stripped out. | public static ModelMBeanInfoSupport | toModelMBeanInfo(MBeanInfo info) Convert regular MBeanInfo into ModelMBeanInfo. | public static ModelMBeanInfoSupport | toModelMBeanInfo(MBeanInfo info, boolean createAttributeOperationMapping) Convert regular MBeanInfo to ModelMBeanInfo.
Parameters: info - MBeanInfo to convert (such a the Standard MBean info) Parameters: createAttributeOperationMapping - setting this boolean totrue will automatically create the attribute operationmapping for Model MBean managemenet attributes. |
stripAttributeOperations | public static ModelMBeanInfoSupport stripAttributeOperations(ModelMBeanInfo info, boolean stripAllRoles) throws MBeanException(Code) | | Returns a ModelMBeanInfoSupport where ModelMBeanOperationInfos that are
referred to by ModelMBeanAttributeInfo getMethod or setMethod descriptor
fields are stripped out. If the stripAllRoles parameter is true
then all the referred-to operations will be stripped. Otherwise only
referred-to operations with a role of "getter" or "setter" will be stripped.
|
toModelMBeanInfo | public static ModelMBeanInfoSupport toModelMBeanInfo(MBeanInfo info)(Code) | | Convert regular MBeanInfo into ModelMBeanInfo.
Parameters: info - MBeanInfo to convert (such as the Standard MBean info) |
toModelMBeanInfo | public static ModelMBeanInfoSupport toModelMBeanInfo(MBeanInfo info, boolean createAttributeOperationMapping)(Code) | | Convert regular MBeanInfo to ModelMBeanInfo.
Parameters: info - MBeanInfo to convert (such a the Standard MBean info) Parameters: createAttributeOperationMapping - setting this boolean totrue will automatically create the attribute operationmapping for Model MBean managemenet attributes. Based on theStandard MBean attribute naming conventions, the Model MBeanattribute descriptors are mapped to appropriate management operations with the getMethod and setMethoddescriptor fields. |
|
|
|