Java Doc for AbstractMBeanInfoAssembler.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

All known Subclasses:   org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler,
AbstractMBeanInfoAssembler
abstract public class AbstractMBeanInfoAssembler implements MBeanInfoAssembler(Code)
Abstract implementation of the MBeanInfoAssembler interface that encapsulates the creation of a ModelMBeanInfo instance but delegates the creation of metadata to subclasses.

This class offers two flavors of Class extraction from a managed bean instance: AbstractMBeanInfoAssembler.getTargetClass , extracting the target class behind any kind of AOP proxy, and AbstractMBeanInfoAssembler.getClassToExpose , returning the class or interface that will be searched for annotations and exposed to the JMX runtime.
author:
   Rob Harrop
author:
   Juergen Hoeller
since:
   1.2





Method Summary
protected  voidcheckManagedBean(Object managedBean)
     Check the given bean instance, throwing an IllegalArgumentException if it is not eligible for exposure with this assembler.
abstract protected  ModelMBeanAttributeInfo[]getAttributeInfo(Object managedBean, String beanKey)
     Get the attribute metadata for the MBean resource.
protected  StringgetClassName(Object managedBean, String beanKey)
     Get the class name of the MBean resource.
protected  ClassgetClassToExpose(Object managedBean)
     Return the class or interface to expose for the given bean.
protected  ClassgetClassToExpose(Class beanClass)
     Return the class or interface to expose for the given bean class.
protected  ModelMBeanConstructorInfo[]getConstructorInfo(Object managedBean, String beanKey)
     Get the constructor metadata for the MBean resource.
protected  StringgetDescription(Object managedBean, String beanKey)
     Get the description of the MBean resource.
public  ModelMBeanInfogetMBeanInfo(Object managedBean, String beanKey)
     Create an instance of the ModelMBeanInfoSupport class supplied with all JMX implementations and populates the metadata through calls to the subclass.
protected  ModelMBeanNotificationInfo[]getNotificationInfo(Object managedBean, String beanKey)
     Get the notification metadata for the MBean resource.
abstract protected  ModelMBeanOperationInfo[]getOperationInfo(Object managedBean, String beanKey)
     Get the operation metadata for the MBean resource.
protected  ClassgetTargetClass(Object managedBean)
     Return the actual bean class of the given bean instance.
protected  voidpopulateMBeanDescriptor(Descriptor descriptor, Object managedBean, String beanKey)
     Called after the ModelMBeanInfo instance has been constructed but before it is passed to the MBeanExporter.

Subclasses can implement this method to add additional descriptors to the MBean metadata.




Method Detail
checkManagedBean
protected void checkManagedBean(Object managedBean) throws IllegalArgumentException(Code)
Check the given bean instance, throwing an IllegalArgumentException if it is not eligible for exposure with this assembler.

Default implementation is empty, accepting every bean instance.
Parameters:
  managedBean - the bean that will be exposed (might be an AOP proxy)
throws:
  IllegalArgumentException - the bean is not valid for exposure




getAttributeInfo
abstract protected ModelMBeanAttributeInfo[] getAttributeInfo(Object managedBean, String beanKey) throws JMException(Code)
Get the attribute metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all the attributes that should be exposed in the management interface for the managed resource.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter the attribute metadata
throws:
  JMException - in case of errors



getClassName
protected String getClassName(Object managedBean, String beanKey) throws JMException(Code)
Get the class name of the MBean resource.

Default implementation returns a simple description for the MBean based on the class name.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter the MBean description
throws:
  JMException - in case of errors




getClassToExpose
protected Class getClassToExpose(Object managedBean)(Code)
Return the class or interface to expose for the given bean. This is the class that will be searched for attributes and operations (for example, checked for annotations).
Parameters:
  managedBean - the bean instance (might be an AOP proxy) the bean class to expose
See Also:   JmxUtils.getClassToExpose(Object)
See Also:   



getClassToExpose
protected Class getClassToExpose(Class beanClass)(Code)
Return the class or interface to expose for the given bean class. This is the class that will be searched for attributes and operations
Parameters:
  beanClass - the bean class (might be an AOP proxy class) the bean class to expose
See Also:   JmxUtils.getClassToExpose(Class)



getConstructorInfo
protected ModelMBeanConstructorInfo[] getConstructorInfo(Object managedBean, String beanKey) throws JMException(Code)
Get the constructor metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all constructors that should be exposed in the management interface for the managed resource.

Default implementation returns an empty array of ModelMBeanConstructorInfo.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter the constructor metadata
throws:
  JMException - in case of errors




getDescription
protected String getDescription(Object managedBean, String beanKey) throws JMException(Code)
Get the description of the MBean resource.

Default implementation returns a simple description for the MBean based on the class name.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter
throws:
  JMException - in case of errors




getMBeanInfo
public ModelMBeanInfo getMBeanInfo(Object managedBean, String beanKey) throws JMException(Code)
Create an instance of the ModelMBeanInfoSupport class supplied with all JMX implementations and populates the metadata through calls to the subclass.
Parameters:
  managedBean - the bean that will be exposed (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the managed bean the populated ModelMBeanInfo instance
throws:
  JMException - in case of errors
See Also:   AbstractMBeanInfoAssembler.getDescription(Object,String)
See Also:   AbstractMBeanInfoAssembler.getAttributeInfo(Object,String)
See Also:   AbstractMBeanInfoAssembler.getConstructorInfo(Object,String)
See Also:   AbstractMBeanInfoAssembler.getOperationInfo(Object,String)
See Also:   AbstractMBeanInfoAssembler.getNotificationInfo(Object,String)
See Also:   AbstractMBeanInfoAssembler.populateMBeanDescriptor(javax.management.Descriptor,Object,String)



getNotificationInfo
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey) throws JMException(Code)
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 - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter the notification metadata
throws:
  JMException - in case of errors




getOperationInfo
abstract protected ModelMBeanOperationInfo[] getOperationInfo(Object managedBean, String beanKey) throws JMException(Code)
Get the operation metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all operations that should be exposed in the management interface for the managed resource.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter the operation metadata
throws:
  JMException - in case of errors



getTargetClass
protected Class getTargetClass(Object managedBean)(Code)
Return the actual bean class of the given bean instance. This is the class exposed to description-style JMX properties.

Default implementation returns the target class for an AOP proxy, and the plain bean class else.
Parameters:
  managedBean - the bean instance (might be an AOP proxy) the bean class to expose
See Also:   org.springframework.aop.framework.AopProxyUtils.getTargetClass




populateMBeanDescriptor
protected void populateMBeanDescriptor(Descriptor descriptor, Object managedBean, String beanKey) throws JMException(Code)
Called after the ModelMBeanInfo instance has been constructed but before it is passed to the MBeanExporter.

Subclasses can implement this method to add additional descriptors to the MBean metadata. Default implementation is empty.
Parameters:
  descriptor - the Descriptor for the MBean resource.
Parameters:
  managedBean - the bean instance (might be an AOP proxy)
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter
throws:
  JMException - in case of errors




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.