Package org.jboss.cache.jmx.annotations

Examples of org.jboss.cache.jmx.annotations.ManagedAttribute.description()


               if (isSetMethod(method))
               { // setter
                  attributeName = (attributeName == null) ? methodName.substring(3) : attributeName;
                  info = new MBeanAttributeInfo(attributeName,
                        method.getParameterTypes()[0].getCanonicalName(),
                        attr.description(),
                        true,
                        true,
                        false);
                  writeAttribute = true;
               }
View Full Code Here


                     if (methodName.startsWith("is"))
                     {
                        attributeName = (attributeName == null) ? methodName.substring(2) : attributeName;
                        info = new MBeanAttributeInfo(attributeName,
                              method.getReturnType().getCanonicalName(),
                              attr.description(),
                              true,
                              hasSetter,
                              true);
                     }
                     else
View Full Code Here

                     {
                        //this has to be get
                        attributeName = (attributeName == null) ? methodName.substring(3) : attributeName;
                        info = new MBeanAttributeInfo(attributeName,
                              method.getReturnType().getCanonicalName(),
                              attr.description(),
                              true,
                              hasSetter,
                              false);
                     }
                  }
View Full Code Here

                        //we already have annotated field as read
                        //lets make the field writable
                        Field f = ((FieldAttributeEntry) ae).getField();
                        MBeanAttributeInfo i = new MBeanAttributeInfo(ae.getInfo().getName(),
                              f.getType().getCanonicalName(),
                              attr.description(),
                              true,
                              Modifier.isFinal(f.getModifiers()) ? false : true,
                              false);
                        atts.put(attributeName, new FieldAttributeEntry(i, f));
                     }
View Full Code Here

            if (attr != null)
            {
               String fieldName = renameToJavaCodingConvention(field.getName());
               MBeanAttributeInfo info = new MBeanAttributeInfo(fieldName,
                     field.getType().getCanonicalName(),
                     attr.description(),
                     true,
                     Modifier.isFinal(field.getModifiers()) ? false : attr.writable(),
                     false);

               atts.put(fieldName, new FieldAttributeEntry(info, field));
View Full Code Here

               if (isSetMethod(method))
               { // setter
                  attributeName = (attributeName == null) ? methodName.substring(3) : attributeName;
                  info = new MBeanAttributeInfo(attributeName,
                        method.getParameterTypes()[0].getCanonicalName(),
                        attr.description(),
                        true,
                        true,
                        false);
                  writeAttribute = true;
               }
View Full Code Here

                     if (methodName.startsWith("is"))
                     {
                        attributeName = (attributeName == null) ? methodName.substring(2) : attributeName;
                        info = new MBeanAttributeInfo(attributeName,
                              method.getReturnType().getCanonicalName(),
                              attr.description(),
                              true,
                              hasSetter,
                              true);
                     }
                     else
View Full Code Here

                     {
                        //this has to be get
                        attributeName = (attributeName == null) ? methodName.substring(3) : attributeName;
                        info = new MBeanAttributeInfo(attributeName,
                              method.getReturnType().getCanonicalName(),
                              attr.description(),
                              true,
                              hasSetter,
                              false);
                     }
                  }
View Full Code Here

                        //we already have annotated field as read
                        //lets make the field writable
                        Field f = ((FieldAttributeEntry) ae).getField();
                        MBeanAttributeInfo i = new MBeanAttributeInfo(ae.getInfo().getName(),
                              f.getType().getCanonicalName(),
                              attr.description(),
                              true,
                              Modifier.isFinal(f.getModifiers()) ? false : true,
                              false);
                        atts.put(attributeName, new FieldAttributeEntry(i, f));
                     }
View Full Code Here

            if (attr != null)
            {
               String fieldName = renameToJavaCodingConvention(field.getName());
               MBeanAttributeInfo info = new MBeanAttributeInfo(fieldName,
                     field.getType().getCanonicalName(),
                     attr.description(),
                     true,
                     Modifier.isFinal(field.getModifiers()) ? false : attr.writable(),
                     false);

               atts.put(fieldName, new FieldAttributeEntry(info, field));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.