Java Doc for MethodExclusionMBeanInfoAssembler.java in  » J2EE » spring-framework-2.0.6 » 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.0.6 » 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.MethodExclusionMBeanInfoAssembler

MethodExclusionMBeanInfoAssembler
public class MethodExclusionMBeanInfoAssembler extends AbstractConfigurableMBeanInfoAssembler (Code)
AbstractReflectiveMBeanInfoAssembler subclass that allows method names to be explicitly excluded as MBean operations and attributes.

Any method not explicitly excluded from the management interface will be exposed to JMX. JavaBean getters and setters will automatically be exposed as JMX attributes.

You can supply an array of method names via the ignoredMethods property. If you have multiple beans and you wish each bean to use a different set of method names, then you can map bean keys (that is the name used to pass the bean to the MBeanExporter) to a list of method names using the ignoredMethodMappings property.

If you specify values for both ignoredMethodMappings and ignoredMethods, Spring will attempt to find method names in the mappings first. If no method names for the bean are found, it will use the method names defined by ignoredMethods.
author:
   Rob Harrop
author:
   Seth Ladd
since:
   1.2.5
See Also:   MethodExclusionMBeanInfoAssembler.setIgnoredMethods
See Also:   MethodExclusionMBeanInfoAssembler.setIgnoredMethodMappings
See Also:   InterfaceBasedMBeanInfoAssembler
See Also:   SimpleReflectiveMBeanInfoAssembler
See Also:   MethodNameBasedMBeanInfoAssembler
See Also:   org.springframework.jmx.export.MBeanExporter





Method Summary
protected  booleanincludeOperation(Method method, String beanKey)
    
protected  booleanincludeReadAttribute(Method method, String beanKey)
    
protected  booleanincludeWriteAttribute(Method method, String beanKey)
    
protected  booleanisNotIgnored(Method method, String beanKey)
     Determine whether the given method is supposed to be included, that is, not configured as to be ignored.
public  voidsetIgnoredMethodMappings(Properties mappings)
     Set the mappings of bean keys to a comma-separated list of method names.

These method names are ignored when creating the management interface.

The property key must match the bean key and the property value must match the list of method names.

public  voidsetIgnoredMethods(String[] ignoredMethodNames)
     Set the array of method names to be ignored when creating the management info.



Method Detail
includeOperation
protected boolean includeOperation(Method method, String beanKey)(Code)



includeReadAttribute
protected boolean includeReadAttribute(Method method, String beanKey)(Code)



includeWriteAttribute
protected boolean includeWriteAttribute(Method method, String beanKey)(Code)



isNotIgnored
protected boolean isNotIgnored(Method method, String beanKey)(Code)
Determine whether the given method is supposed to be included, that is, not configured as to be ignored.
Parameters:
  method - the operation method
Parameters:
  beanKey - the key associated with the MBean in the beans mapof the MBeanExporter



setIgnoredMethodMappings
public void setIgnoredMethodMappings(Properties mappings)(Code)
Set the mappings of bean keys to a comma-separated list of method names.

These method names are ignored when creating the management interface.

The property key must match the bean key and the property value must match the list of method names. When searching for method names to ignore for a bean, Spring will check these mappings first.




setIgnoredMethods
public void setIgnoredMethods(String[] ignoredMethodNames)(Code)
Set the array of method names to be ignored when creating the management info.

These method names will be used for a bean if no entry corresponding to that bean is found in the ignoredMethodsMappings property.
See Also:   MethodExclusionMBeanInfoAssembler.setIgnoredMethodMappings(java.util.Properties)




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.