| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jmx.export.annotation.AnnotationJmxAttributeSource
public class AnnotationJmxAttributeSource
Implementation of the JmxAttributeSource interface that
 reads JDK 1.5+ annotations and exposes the corresponding attributes.
 
This is a direct alternative to AttributesJmxAttributeSource,
 which is able to read in source-level attributes via Commons Attributes.
ManagedResource, 
ManagedAttribute, 
ManagedOperation, 
AttributesJmxAttributeSource, 
CommonsAttributes| Constructor Summary | |
|---|---|
| AnnotationJmxAttributeSource() | |
| Method Summary | |
|---|---|
|  ManagedAttribute | getManagedAttribute(Method method)Implementations should return an instance of ManagedAttributeif the suppliedMethodhas the corresponding metadata. | 
|  ManagedNotification[] | getManagedNotifications(Class clazz)Implementations should return an array of ManagedNotificationsif the supplied theClasshas the corresponding metadata. | 
|  ManagedOperation | getManagedOperation(Method method)Implementations should return an instance of ManagedOperationif the suppliedMethodhas the corresponding metadata. | 
|  ManagedOperationParameter[] | getManagedOperationParameters(Method method)Implementations should return an array of ManagedOperationParameterif the suppliedMethodhas the corresponding metadata. | 
|  ManagedResource | getManagedResource(Class beanClass)Implementations should return an instance of ManagedResourceif the suppliedClasshas the appropriate metadata. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AnnotationJmxAttributeSource()
| Method Detail | 
|---|
public ManagedResource getManagedResource(Class beanClass)
                                   throws InvalidMetadataException
JmxAttributeSourceManagedResource
 if the supplied Class has the appropriate metadata.
 Otherwise should return null.
getManagedResource in interface JmxAttributeSourcebeanClass - the class to read the attribute data from
null if not found
InvalidMetadataException - in case of invalid attributes
public ManagedAttribute getManagedAttribute(Method method)
                                     throws InvalidMetadataException
JmxAttributeSourceManagedAttribute
 if the supplied Method has the corresponding metadata.
 Otherwise should return null.
getManagedAttribute in interface JmxAttributeSourcemethod - the method to read the attribute data from
null if not found
InvalidMetadataException - in case of invalid attributes
public ManagedOperation getManagedOperation(Method method)
                                     throws InvalidMetadataException
JmxAttributeSourceManagedOperation
 if the supplied Method has the corresponding metadata.
 Otherwise should return null.
getManagedOperation in interface JmxAttributeSourcemethod - the method to read the attribute data from
null if not found
InvalidMetadataException - in case of invalid attributes
public ManagedOperationParameter[] getManagedOperationParameters(Method method)
                                                          throws InvalidMetadataException
JmxAttributeSourceManagedOperationParameter
 if the supplied Method has the corresponding metadata. Otherwise
 should return an empty array if no metadata is found.
getManagedOperationParameters in interface JmxAttributeSourcemethod - the Method to read the metadata from
InvalidMetadataException - in the case of invalid attributes.
public ManagedNotification[] getManagedNotifications(Class clazz)
                                              throws InvalidMetadataException
JmxAttributeSourceManagedNotifications
 if the supplied the Class has the corresponding metadata. Otherwise
 should return an empty array.
getManagedNotifications in interface JmxAttributeSourceclazz - the Class to read the metadata from
InvalidMetadataException - in the case of invalid metadata| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||