Top Description Fields Constructors Methods
org.springframework.jmx.export.assembler

public abstract Class AbstractConfigurableMBeanInfoAssembler

extends AbstractReflectiveMBeanInfoAssembler
Class Inheritance
Known Direct Subclasses
org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler, org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler, org.springframework.jmx.export.assembler.MethodNameBasedMBeanInfoAssembler, org.springframework.jmx.export.assembler.SimpleReflectiveMBeanInfoAssembler
Imports
java.util.ArrayList, .Collection, .HashMap, .List, .Map, javax.management.modelmbean.ModelMBeanNotificationInfo, org.springframework.jmx.export.metadata.JmxMetadataUtils, .ManagedNotification, org.springframework.lang.Nullable, org.springframework.util.StringUtils

Base class for MBeanInfoAssemblers that support configurable JMX notification behavior.
Authors
Rob Harrop, Juergen Hoeller
Since
2.0

Field Summary

Modifier and TypeField and Description
private final Map<String, ModelMBeanNotificationInfo[]>
private ModelMBeanNotificationInfo[]
Inherited from org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler:
ATTRIBUTE_OPERATION_VISIBILITYFIELD_CLASSFIELD_CURRENCY_TIME_LIMITFIELD_DEFAULTFIELD_DISPLAY_NAMEFIELD_GET_METHODFIELD_LOGFIELD_LOG_FILEFIELD_METRIC_CATEGORYFIELD_METRIC_TYPEFIELD_PERSIST_LOCATIONFIELD_PERSIST_NAMEFIELD_PERSIST_PERIODFIELD_PERSIST_POLICYFIELD_ROLEFIELD_SET_METHODFIELD_UNITSFIELD_VISIBILITYROLE_GETTERROLE_OPERATIONROLE_SETTER

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private ModelMBeanNotificationInfo[]
protected ModelMBeanNotificationInfo[]
getNotificationInfo(Object
the bean instance (might be an AOP proxy)
managedBean
,
String
the key associated with the MBean in the beans map of the MBeanExporter
beanKey
)

Overrides org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getNotificationInfo.

Get the notification metadata for the MBean resource.
public void
setNotificationInfoMappings(Map<String, Object> notificationInfoMappings)

public void
Inherited from org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler:
applyCurrencyTimeLimitapplyDefaultCurrencyTimeLimitcreateModelMBeanOperationInfogetAttributeDescriptiongetAttributeInfogetClassForDescriptorgetDefaultCurrencyTimeLimitgetOperationDescriptiongetOperationInfogetOperationParametersgetParameterNameDiscovererincludeOperationincludeReadAttributeincludeWriteAttributeisExposeClassDescriptorisUseStrictCasingpopulateAttributeDescriptorpopulateMBeanDescriptorpopulateOperationDescriptorsetDefaultCurrencyTimeLimitsetExposeClassDescriptorsetParameterNameDiscoverersetUseStrictCasing

Field Detail

notificationInfoMappingsback to summary
private final Map<String, ModelMBeanNotificationInfo[]> notificationInfoMappings
notificationInfosback to summary
private ModelMBeanNotificationInfo[] notificationInfos
Annotations
@Nullable

Constructor Detail

AbstractConfigurableMBeanInfoAssemblerback to summary
public AbstractConfigurableMBeanInfoAssembler()

Method Detail

extractNotificationMetadataback to summary
private ModelMBeanNotificationInfo[] extractNotificationMetadata(Object mapValue)
getNotificationInfoback to summary
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey)

Overrides org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getNotificationInfo.

Doc from org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getNotificationInfo.

Get the notification metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all notifications that should be exposed in the management interface for the managed resource.

Default implementation returns an empty array of ModelMBeanNotificationInfo.

Parameters
managedBean:Object

the bean instance (might be an AOP proxy)

beanKey:String

the key associated with the MBean in the beans map of the MBeanExporter

Returns:ModelMBeanNotificationInfo[]

the notification metadata

Annotations
@Override
setNotificationInfoMappingsback to summary
public void setNotificationInfoMappings(Map<String, Object> notificationInfoMappings)
setNotificationInfosback to summary
public void setNotificationInfos(ManagedNotification[] notificationInfos)