Java Doc for InterfaceBasedMBeanInfoAssembler.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.AbstractConfigurableMBeanInfoAssembler
            org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler

InterfaceBasedMBeanInfoAssembler
public class InterfaceBasedMBeanInfoAssembler extends AbstractConfigurableMBeanInfoAssembler implements BeanClassLoaderAware,InitializingBean(Code)
Subclass of AbstractReflectiveMBeanInfoAssembler that allows for the management interface of a bean to be defined using arbitrary interfaces. Any methods or properties that are defined in those interfaces are exposed as MBean operations and attributes.

By default, this class votes on the inclusion of each operation or attribute based on the interfaces implemented by the bean class. However, you can supply an array of interfaces via the managedInterfaces property that will be used instead. If you have multiple beans and you wish each bean to use a different set of interfaces, then you can map bean keys (that is the name used to pass the bean to the MBeanExporter) to a list of interface names using the interfaceMappings property.

If you specify values for both interfaceMappings and managedInterfaces, Spring will attempt to find interfaces in the mappings first. If no interfaces for the bean are found, it will use the interfaces defined by managedInterfaces.
author:
   Rob Harrop
author:
   Juergen Hoeller
since:
   1.2
See Also:   InterfaceBasedMBeanInfoAssembler.setManagedInterfaces
See Also:   InterfaceBasedMBeanInfoAssembler.setInterfaceMappings
See Also:   MethodNameBasedMBeanInfoAssembler
See Also:   SimpleReflectiveMBeanInfoAssembler
See Also:   org.springframework.jmx.export.MBeanExporter





Method Summary
public  voidafterPropertiesSet()
    
protected  booleanincludeOperation(Method method, String beanKey)
     Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the operation Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map.
protected  booleanincludeReadAttribute(Method method, String beanKey)
     Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the accessor Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map.
protected  booleanincludeWriteAttribute(Method method, String beanKey)
     Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the mutator Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map.
public  voidsetBeanClassLoader(ClassLoader beanClassLoader)
    
public  voidsetInterfaceMappings(Properties mappings)
     Set the mappings of bean keys to a comma-separated list of interface names. The property key should match the bean key and the property value should match the list of interface names.
public  voidsetManagedInterfaces(Class[] managedInterfaces)
     Set the array of interfaces to use for creating the management info.



Method Detail
afterPropertiesSet
public void afterPropertiesSet()(Code)



includeOperation
protected boolean includeOperation(Method method, String beanKey)(Code)
Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the operation Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map. true if the Method is declared in one of theconfigured interfaces, otherwise false.



includeReadAttribute
protected boolean includeReadAttribute(Method method, String beanKey)(Code)
Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the accessor Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map. true if the Method is declared in one of theconfigured interfaces, otherwise false.



includeWriteAttribute
protected boolean includeWriteAttribute(Method method, String beanKey)(Code)
Check to see if the Method is declared in one of the configured interfaces and that it is public.
Parameters:
  method - the mutator Method.
Parameters:
  beanKey - the key associated with the MBean in thebeans Map. true if the Method is declared in one of theconfigured interfaces, otherwise false.



setBeanClassLoader
public void setBeanClassLoader(ClassLoader beanClassLoader)(Code)



setInterfaceMappings
public void setInterfaceMappings(Properties mappings)(Code)
Set the mappings of bean keys to a comma-separated list of interface names. The property key should match the bean key and the property value should match the list of interface names. When searching for interfaces for a bean, Spring will check these mappings first.
Parameters:
  mappings - the mappins of bean keys to interface names



setManagedInterfaces
public void setManagedInterfaces(Class[] managedInterfaces)(Code)
Set the array of interfaces to use for creating the management info. These interfaces will be used for a bean if no entry corresponding to that bean is found in the interfaceMappings property.
Parameters:
  managedInterfaces - an array of classes indicating the interfaces to use.Each entry MUST be an interface.
See Also:   InterfaceBasedMBeanInfoAssembler.setInterfaceMappings



Methods inherited from org.springframework.jmx.export.assembler.AbstractConfigurableMBeanInfoAssembler
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey)(Code)(Java Doc)
public void setNotificationInfoMappings(Map notificationInfoMappings)(Code)(Java Doc)
public void setNotificationInfos(ManagedNotification[] notificationInfos)(Code)(Java Doc)

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.