Package org.springframework.jmx.export.metadata

Examples of org.springframework.jmx.export.metadata.ManagedOperation


  public ManagedOperation getManagedOperation(Method method) throws InvalidMetadataException {
    Annotation ann = AnnotationUtils.findAnnotation(method, org.springframework.jmx.export.annotation.ManagedOperation.class);
    if (ann == null) {
      return null;
    }
    ManagedOperation op = new ManagedOperation();
    AnnotationBeanUtils.copyPropertiesToBean(ann, op);
    return op;
  }
View Full Code Here


        return metric.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
      if (mo != null && StringUtils.hasText(mo.getDescription())) {
        return mo.getDescription();
      }
      return method.getName();
    }
  }
View Full Code Here

   * to the attribute descriptor. Specifically, adds the <code>currencyTimeLimit</code>
   * descriptor field if it is present in the metadata.
   */
  @Override
  protected void populateOperationDescriptor(Descriptor desc, Method method, String beanKey) {
    ManagedOperation mo = this.attributeSource.getManagedOperation(method);
    if (mo != null) {
      applyCurrencyTimeLimit(desc, mo.getCurrencyTimeLimit());
    }
  }
View Full Code Here

    Annotation ann = AnnotationUtils.getAnnotation(method, org.springframework.jmx.export.annotation.ManagedOperation.class);
    if (ann == null) {
      return null;
    }

    ManagedOperation op = new ManagedOperation();
    AnnotationBeanUtils.copyPropertiesToBean(ann, op);
    return op;
  }
View Full Code Here

        return ma.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
      if (mo != null && StringUtils.hasText(mo.getDescription())) {
        return mo.getDescription();
      }
      return method.getName();
    }
  }
View Full Code Here

   * Adds descriptor fields from the <code>ManagedAttribute</code> attribute
   * to the attribute descriptor. Specifically, adds the <code>currencyTimeLimit</code>
   * descriptor field if it is present in the metadata.
   */
  protected void populateOperationDescriptor(Descriptor desc, Method method, String beanKey) {
    ManagedOperation mo = this.attributeSource.getManagedOperation(method);
    if (mo != null) {
      applyCurrencyTimeLimit(desc, mo.getCurrencyTimeLimit());
    }
  }
View Full Code Here

        return ma.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
      if (mo != null && StringUtils.hasText(mo.getDescription())) {
        return mo.getDescription();
      }
      return method.getName();
    }
  }
View Full Code Here

   * Adds descriptor fields from the <code>ManagedAttribute</code> attribute
   * to the attribute descriptor. Specifically, adds the <code>currencyTimeLimit</code>
   * descriptor field if it is present in the metadata.
   */
  protected void populateOperationDescriptor(Descriptor desc, Method method, String beanKey) {
    ManagedOperation mo = this.attributeSource.getManagedOperation(method);
    if (mo != null) {
      applyCurrencyTimeLimit(desc, mo.getCurrencyTimeLimit());
    }
  }
View Full Code Here

    Annotation ann = AnnotationUtils.getAnnotation(method, org.springframework.jmx.export.annotation.ManagedOperation.class);
    if (ann == null) {
      return null;
    }

    ManagedOperation op = new ManagedOperation();
    AnnotationBeanUtils.copyPropertiesToBean(ann, op);
    return op;
  }
View Full Code Here

        return metric.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
      if (mo != null && StringUtils.hasText(mo.getDescription())) {
        return mo.getDescription();
      }
      return method.getName();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.jmx.export.metadata.ManagedOperation

Copyright © 2018 www.massapicom. 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.