|
|
|
@ -45,18 +45,14 @@ import org.springframework.util.StringUtils; |
|
|
|
|
* |
|
|
|
|
* <p>Uses the {@link JmxAttributeSource} strategy interface, so that |
|
|
|
|
* metadata can be read using any supported implementation. Out of the box, |
|
|
|
|
* two strategies are included: |
|
|
|
|
* <ul> |
|
|
|
|
* <li><code>AttributesJmxAttributeSource</code>, for Commons Attributes |
|
|
|
|
* <li><code>AnnotationJmxAttributeSource</code>, for JDK 1.5+ annotations |
|
|
|
|
* </ul> |
|
|
|
|
* Spring provides an implementation based on JDK 1.5+ annotations, |
|
|
|
|
* <code>AnnotationJmxAttributeSource</code>. |
|
|
|
|
* |
|
|
|
|
* @author Rob Harrop |
|
|
|
|
* @author Juergen Hoeller |
|
|
|
|
* @author Jennifer Hickey |
|
|
|
|
* @since 1.2 |
|
|
|
|
* @see #setAttributeSource |
|
|
|
|
* @see org.springframework.jmx.export.metadata.AttributesJmxAttributeSource |
|
|
|
|
* @see org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource |
|
|
|
|
*/ |
|
|
|
|
public class MetadataMBeanInfoAssembler extends AbstractReflectiveMBeanInfoAssembler |
|
|
|
@ -86,7 +82,6 @@ public class MetadataMBeanInfoAssembler extends AbstractReflectiveMBeanInfoAssem |
|
|
|
|
/** |
|
|
|
|
* Set the <code>JmxAttributeSource</code> implementation to use for |
|
|
|
|
* reading the metadata from the bean class. |
|
|
|
|
* @see org.springframework.jmx.export.metadata.AttributesJmxAttributeSource |
|
|
|
|
* @see org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource |
|
|
|
|
*/ |
|
|
|
|
public void setAttributeSource(JmxAttributeSource attributeSource) { |
|
|
|
|