You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2006/12/28 19:13:45 UTC
svn commit: r490768 -
/incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java
Author: meerajk
Date: Thu Dec 28 10:13:45 2006
New Revision: 490768
URL: http://svn.apache.org/viewvc?view=rev&rev=490768
Log:
reordered methods.
Modified:
incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java
Modified: incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java?view=diff&rev=490768&r1=490767&r2=490768
==============================================================================
--- incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java (original)
+++ incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/management/jmx/instrument/reflect/ReflectedDynamicMBean.java Thu Dec 28 10:13:45 2006
@@ -149,33 +149,6 @@
}
/**
- * Caches managed properties.
- * @param beanInfo Bean info for the managed instance.
- */
- private void cacheProperties(BeanInfo beanInfo) {
- for (PropertyDescriptor propertyDescriptor : beanInfo.getPropertyDescriptors()) {
-
- String name = propertyDescriptor.getName();
-
- if (DEFAULT_EXCLUDED_PROPERTIES.contains(name) || excludedProperties.contains(name)) {
- continue;
- }
- properties.put(name, propertyDescriptor);
-
- Method readMethod = propertyDescriptor.getReadMethod();
- if (readMethod != null && Modifier.isPublic(readMethod.getModifiers())) {
- propertyReadMethods.put(name, readMethod);
- }
-
- Method writeMethod = propertyDescriptor.getWriteMethod();
- if (writeMethod != null && Modifier.isPublic(writeMethod.getModifiers())) {
- propertyWriteMethods.put(name, writeMethod);
- }
-
- }
- }
-
- /**
* @see javax.management.DynamicMBean#getAttribute(java.lang.String)
*/
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException {
@@ -318,6 +291,33 @@
}
+ }
+
+ /**
+ * Caches managed properties.
+ * @param beanInfo Bean info for the managed instance.
+ */
+ private void cacheProperties(BeanInfo beanInfo) {
+ for (PropertyDescriptor propertyDescriptor : beanInfo.getPropertyDescriptors()) {
+
+ String name = propertyDescriptor.getName();
+
+ if (DEFAULT_EXCLUDED_PROPERTIES.contains(name) || excludedProperties.contains(name)) {
+ continue;
+ }
+ properties.put(name, propertyDescriptor);
+
+ Method readMethod = propertyDescriptor.getReadMethod();
+ if (readMethod != null && Modifier.isPublic(readMethod.getModifiers())) {
+ propertyReadMethods.put(name, readMethod);
+ }
+
+ Method writeMethod = propertyDescriptor.getWriteMethod();
+ if (writeMethod != null && Modifier.isPublic(writeMethod.getModifiers())) {
+ propertyWriteMethods.put(name, writeMethod);
+ }
+
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org