Java Doc for MetadataMBeanInfoAssembler.java in  » J2EE » spring-framework-2.5 » org » springframework » jmx » export » assembler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.5 » org.springframework.jmx.export.assembler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
      org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
         org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler

MetadataMBeanInfoAssembler
public class MetadataMBeanInfoAssembler extends AbstractReflectiveMBeanInfoAssembler implements AutodetectCapableMBeanInfoAssembler,InitializingBean(Code)
Implementation of the org.springframework.jmx.export.assembler.MBeanInfoAssembler interface that reads the management interface information from source level metadata.

Uses the JmxAttributeSource strategy interface, so that metadata can be read using any supported implementation. Out of the box, two strategies are included:

  • AttributesJmxAttributeSource, for Commons Attributes
  • AnnotationJmxAttributeSource, for JDK 1.5+ annotations

author:
   Rob Harrop
author:
   Juergen Hoeller
since:
   1.2
See Also:   MetadataMBeanInfoAssembler.setAttributeSource
See Also:   org.springframework.jmx.export.metadata.AttributesJmxAttributeSource
See Also:   org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource



Constructor Summary
public  MetadataMBeanInfoAssembler()
     Create a new MetadataMBeanInfoAssembler which needs to be configured through the MetadataMBeanInfoAssembler.setAttributeSource method.
public  MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource)
     Create a new MetadataMBeanInfoAssembler for the given JmxAttributeSource.

Method Summary
public  voidafterPropertiesSet()
    
protected  voidcheckManagedBean(Object managedBean)
     Throws an IllegalArgumentException if it encounters a JDK dynamic proxy.
protected  StringgetAttributeDescription(PropertyDescriptor propertyDescriptor, String beanKey)
     Creates a description for the attribute corresponding to this property descriptor.
protected  StringgetDescription(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  StringgetOperationDescription(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  booleanincludeBean(Class beanClass, String beanName)
     Used for autodetection of beans.
protected  booleanincludeOperation(Method method, String beanKey)
     Votes on the inclusion of an operation.
protected  booleanincludeReadAttribute(Method method, String beanKey)
     Vote on the inclusion of an attribute accessor.
protected  booleanincludeWriteAttribute(Method method, String beanKey)
     Votes on the inclusion of an attribute mutator.
protected  voidpopulateAttributeDescriptor(Descriptor desc, Method getter, Method setter, String beanKey)
     Adds descriptor fields from the ManagedAttribute attribute to the attribute descriptor.
protected  voidpopulateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey)
     Adds descriptor fields from the ManagedResource attribute to the MBean descriptor.
protected  voidpopulateOperationDescriptor(Descriptor desc, Method method, String beanKey)
     Adds descriptor fields from the ManagedAttribute attribute to the attribute descriptor.
public  voidsetAttributeSource(JmxAttributeSource attributeSource)
     Set the JmxAttributeSource implementation to use for reading the metadata from the bean class.


Constructor Detail
MetadataMBeanInfoAssembler
public MetadataMBeanInfoAssembler()(Code)
Create a new MetadataMBeanInfoAssembler which needs to be configured through the MetadataMBeanInfoAssembler.setAttributeSource method.



MetadataMBeanInfoAssembler
public MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource)(Code)
Create a new MetadataMBeanInfoAssembler for the given JmxAttributeSource.
Parameters:
  attributeSource - the JmxAttributeSource to use




Method Detail
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.



getNotificationInfo
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey)(Code)
Reads the ManagedNotification metadata from the Class of the managed resource and generates and returns the corresponding ModelMBeanNotificationInfo metadata.



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.



setAttributeSource
public void setAttributeSource(JmxAttributeSource attributeSource)(Code)
Set the JmxAttributeSource implementation to use for reading the metadata from the bean class.
See Also:   org.springframework.jmx.export.metadata.AttributesJmxAttributeSource
See Also:   org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource



Fields inherited from org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
final protected static Integer ATTRIBUTE_OPERATION_VISIBILITY(Code)(Java Doc)
final protected static String FIELD_CLASS(Code)(Java Doc)
final protected static String FIELD_CURRENCY_TIME_LIMIT(Code)(Java Doc)
final protected static String FIELD_DEFAULT(Code)(Java Doc)
final protected static String FIELD_GET_METHOD(Code)(Java Doc)
final protected static String FIELD_LOG(Code)(Java Doc)
final protected static String FIELD_LOG_FILE(Code)(Java Doc)
final protected static String FIELD_PERSIST_LOCATION(Code)(Java Doc)
final protected static String FIELD_PERSIST_NAME(Code)(Java Doc)
final protected static String FIELD_PERSIST_PERIOD(Code)(Java Doc)
final protected static String FIELD_PERSIST_POLICY(Code)(Java Doc)
final protected static String FIELD_ROLE(Code)(Java Doc)
final protected static String FIELD_SET_METHOD(Code)(Java Doc)
final protected static String FIELD_VISIBILITY(Code)(Java Doc)
final protected static String ROLE_GETTER(Code)(Java Doc)
final protected static String ROLE_OPERATION(Code)(Java Doc)
final protected static String ROLE_SETTER(Code)(Java Doc)

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)

Methods inherited from org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
protected void checkManagedBean(Object managedBean) throws IllegalArgumentException(Code)(Java Doc)
abstract protected ModelMBeanAttributeInfo[] getAttributeInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
protected String getClassName(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
protected Class getClassToExpose(Object managedBean)(Code)(Java Doc)
protected Class getClassToExpose(Class beanClass)(Code)(Java Doc)
protected ModelMBeanConstructorInfo[] getConstructorInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
protected String getDescription(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
public ModelMBeanInfo getMBeanInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
abstract protected ModelMBeanOperationInfo[] getOperationInfo(Object managedBean, String beanKey) throws JMException(Code)(Java Doc)
protected Class getTargetClass(Object managedBean)(Code)(Java Doc)
protected void populateMBeanDescriptor(Descriptor descriptor, Object managedBean, String beanKey) throws JMException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.