| java.lang.Object org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler
Method Summary | |
public void | afterPropertiesSet() | protected void | checkManagedBean(Object managedBean) Throws an IllegalArgumentException if it encounters a JDK dynamic proxy. | protected String | getAttributeDescription(PropertyDescriptor propertyDescriptor, String beanKey) Creates a description for the attribute corresponding to this property
descriptor. | protected String | getDescription(Object managedBean, String beanKey) Reads managed resource description from the source level metadata. | protected ModelMBeanNotificationInfo[] | getNotificationInfo(Object managedBean, String beanKey) Reads the
ManagedNotification metadata from the Class of the managed resource
and generates and returns the corresponding
ModelMBeanNotificationInfo metadata. | protected String | getOperationDescription(Method method, String beanKey) Retrieves the description for the supplied Method from the
metadata. | protected MBeanParameterInfo[] | getOperationParameters(Method method, String beanKey) Reads MBeanParameterInfo from the ManagedOperationParameter
attributes attached to a method. | public boolean | includeBean(Class beanClass, String beanName) Used for autodetection of beans. | protected boolean | includeOperation(Method method, String beanKey) Votes on the inclusion of an operation. | protected boolean | includeReadAttribute(Method method, String beanKey) Vote on the inclusion of an attribute accessor. | protected boolean | includeWriteAttribute(Method method, String beanKey) Votes on the inclusion of an attribute mutator. | protected void | populateAttributeDescriptor(Descriptor desc, Method getter, Method setter, String beanKey) Adds descriptor fields from the ManagedAttribute attribute
to the attribute descriptor. | protected void | populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) Adds descriptor fields from the ManagedResource attribute
to the MBean descriptor. | protected void | populateOperationDescriptor(Descriptor desc, Method method, String beanKey) Adds descriptor fields from the ManagedAttribute attribute
to the attribute descriptor. | public void | setAttributeSource(JmxAttributeSource attributeSource) Set the JmxAttributeSource implementation to use for
reading the metadata from the bean class. |
MetadataMBeanInfoAssembler | public MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource)(Code) | | Create a new MetadataMBeanInfoAssembler for the given
JmxAttributeSource .
Parameters: attributeSource - the JmxAttributeSource to use |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
checkManagedBean | protected void checkManagedBean(Object managedBean) throws IllegalArgumentException(Code) | | Throws an IllegalArgumentException if it encounters a JDK dynamic proxy.
Metadata can only be read from target classes and CGLIB proxies!
|
getAttributeDescription | protected String getAttributeDescription(PropertyDescriptor propertyDescriptor, String beanKey)(Code) | | Creates a description for the attribute corresponding to this property
descriptor. Attempts to create the description using metadata from either
the getter or setter attributes, otherwise uses the property name.
|
getDescription | protected String getDescription(Object managedBean, String beanKey)(Code) | | Reads managed resource description from the source level metadata.
Returns an empty String if no description can be found.
|
getOperationDescription | protected String getOperationDescription(Method method, String beanKey)(Code) | | Retrieves the description for the supplied Method from the
metadata. Uses the method name is no description is present in the metadata.
|
getOperationParameters | protected MBeanParameterInfo[] getOperationParameters(Method method, String beanKey)(Code) | | Reads MBeanParameterInfo from the ManagedOperationParameter
attributes attached to a method. Returns an empty array of MBeanParameterInfo
if no attributes are found.
|
includeBean | public boolean includeBean(Class beanClass, String beanName)(Code) | | Used for autodetection of beans. Checks to see if the bean's class has a
ManagedResource attribute. If so it will add it list of included beans.
Parameters: beanClass - the class of the bean Parameters: beanName - the name of the bean in the bean factory |
includeOperation | protected boolean includeOperation(Method method, String beanKey)(Code) | | Votes on the inclusion of an operation.
Parameters: method - the operation method Parameters: beanKey - the key associated with the MBean in the beans map whether the method has the appropriate metadata |
includeReadAttribute | protected boolean includeReadAttribute(Method method, String beanKey)(Code) | | Vote on the inclusion of an attribute accessor.
Parameters: method - the accessor method Parameters: beanKey - the key associated with the MBean in the beans map whether the method has the appropriate metadata |
includeWriteAttribute | protected boolean includeWriteAttribute(Method method, String beanKey)(Code) | | Votes on the inclusion of an attribute mutator.
Parameters: method - the mutator method Parameters: beanKey - the key associated with the MBean in the beans map whether the method has the appropriate metadata |
populateAttributeDescriptor | protected void populateAttributeDescriptor(Descriptor desc, Method getter, Method setter, String beanKey)(Code) | | Adds descriptor fields from the ManagedAttribute attribute
to the attribute descriptor. Specifically, adds the currencyTimeLimit ,
default , persistPolicy and persistPeriod
descriptor fields if they are present in the metadata.
|
populateMBeanDescriptor | protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey)(Code) | | Adds descriptor fields from the ManagedResource attribute
to the MBean descriptor. Specifically, adds the currencyTimeLimit ,
persistPolicy , persistPeriod , persistLocation
and persistName descriptor fields if they are present in the metadata.
|
populateOperationDescriptor | protected void populateOperationDescriptor(Descriptor desc, Method method, String beanKey)(Code) | | Adds descriptor fields from the ManagedAttribute attribute
to the attribute descriptor. Specifically, adds the currencyTimeLimit
descriptor field if it is present in the metadata.
|
Methods inherited from org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler | protected void applyCurrencyTimeLimit(Descriptor desc, int currencyTimeLimit)(Code)(Java Doc) final protected void applyDefaultCurrencyTimeLimit(Descriptor desc)(Code)(Java Doc) protected ModelMBeanOperationInfo createModelMBeanOperationInfo(Method method, String name, String beanKey)(Code)(Java Doc) protected String getAttributeDescription(PropertyDescriptor propertyDescriptor, String beanKey)(Code)(Java Doc) protected ModelMBeanAttributeInfo[] getAttributeInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc) protected Class getClassForDescriptor(Object managedBean)(Code)(Java Doc) protected Integer getDefaultCurrencyTimeLimit()(Code)(Java Doc) protected String getOperationDescription(Method method, String beanKey)(Code)(Java Doc) protected ModelMBeanOperationInfo[] getOperationInfo(Object managedBean, String beanKey)(Code)(Java Doc) protected MBeanParameterInfo[] getOperationParameters(Method method, String beanKey)(Code)(Java Doc) abstract protected boolean includeOperation(Method method, String beanKey)(Code)(Java Doc) abstract protected boolean includeReadAttribute(Method method, String beanKey)(Code)(Java Doc) abstract protected boolean includeWriteAttribute(Method method, String beanKey)(Code)(Java Doc) protected boolean isExposeClassDescriptor()(Code)(Java Doc) protected boolean isUseStrictCasing()(Code)(Java Doc) protected void populateAttributeDescriptor(Descriptor desc, Method getter, Method setter, String beanKey)(Code)(Java Doc) protected void populateMBeanDescriptor(Descriptor descriptor, Object managedBean, String beanKey)(Code)(Java Doc) protected void populateOperationDescriptor(Descriptor desc, Method method, String beanKey)(Code)(Java Doc) public void setDefaultCurrencyTimeLimit(Integer defaultCurrencyTimeLimit)(Code)(Java Doc) public void setExposeClassDescriptor(boolean exposeClassDescriptor)(Code)(Java Doc) public void setUseStrictCasing(boolean useStrictCasing)(Code)(Java Doc)
|
|
|