Examples of InvalidMetaDataException


Examples of org.jpox.metadata.InvalidMetaDataException

            {
                field = BCELUtils.getFieldByName(name,((BCELClassMetaData)parent).getClassGen());
            }
            if (method == null && field == null)
            {
                throw new InvalidMetaDataException(LOCALISER_ENH, "Enhancer.FieldNotFound",
                    ((parent instanceof AbstractClassMetaData ) ? ((AbstractClassMetaData)parent).getFullClassName() + "." : "" ) + name);
            }
            if (method == null)
            {
                enhanceField = new BCELMember(field);
View Full Code Here

Examples of org.jpox.metadata.InvalidMetaDataException

        {
            // If the field is for this class, save the field for use in BCEL enhancing later
            Field field = BCELUtils.getFieldByName(name,((BCELClassMetaData)parent).getClassGen());
            if (field == null)
            {
                throw new InvalidMetaDataException(LOCALISER_ENH, "Enhancer.FieldNotFound",
                    ((parent instanceof ClassMetaData ) ? ((ClassMetaData)parent).getFullClassName() + "." : "" ) + name);
            }
            enhanceField = new BCELMember(field);
        }
        else
View Full Code Here

Examples of org.jpox.metadata.InvalidMetaDataException

        {
            // If the field is for this class, save the field for use in BCEL enhancing later
            Field field = BCELUtils.getFieldByName(name,((BCELClassMetaData)parent).getClassGen());
            if (field == null)
            {
                throw new InvalidMetaDataException(LOCALISER_ENH, "Enhancer.FieldNotFound",
                    ((parent instanceof ClassMetaData ) ? ((ClassMetaData)parent).getFullClassName() + "." : "" ) + name);
            }
            enhanceField = new BCELMember(field);
        }
        else
View Full Code Here

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

   */
  @Override
  protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) {
    ManagedResource mr = this.attributeSource.getManagedResource(getClassToExpose(managedBean));
    if (mr == null) {
      throw new InvalidMetadataException(
          "No ManagedResource attribute found for class: " + getClassToExpose(managedBean));
    }

    applyCurrencyTimeLimit(desc, mr.getCurrencyTimeLimit());

View Full Code Here

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

  }

  public ManagedOperation getManagedOperation(Method method) throws InvalidMetadataException {
    PropertyDescriptor pd = BeanUtils.findPropertyForMethod(method);
    if (pd != null) {
      throw new InvalidMetadataException(
          "The ManagedOperation attribute is not valid for JavaBean properties. Use ManagedAttribute instead.");
    }

    Annotation ann = AnnotationUtils.getAnnotation(method, org.springframework.jmx.export.annotation.ManagedOperation.class);
    if (ann == null) {
View Full Code Here

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

   * and <code>persistName</code> descriptor fields if they are present in the metadata.
   */
  protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) {
    ManagedResource mr = this.attributeSource.getManagedResource(getClassToExpose(managedBean));
    if (mr == null) {
      throw new InvalidMetadataException(
          "No ManagedResource attribute found for class: " + getClassToExpose(managedBean));
    }

    applyCurrencyTimeLimit(desc, mr.getCurrencyTimeLimit());

View Full Code Here

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

   * and <code>persistName</code> descriptor fields if they are present in the metadata.
   */
  protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) {
    ManagedResource mr = this.attributeSource.getManagedResource(getClassToExpose(managedBean));
    if (mr == null) {
      throw new InvalidMetadataException(
          "No ManagedResource attribute found for class: " + getClassToExpose(managedBean));
    }

    applyCurrencyTimeLimit(desc, mr.getCurrencyTimeLimit());

View Full Code Here

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

  }

  public ManagedOperation getManagedOperation(Method method) throws InvalidMetadataException {
    PropertyDescriptor pd = BeanUtils.findPropertyForMethod(method);
    if (pd != null) {
      throw new InvalidMetadataException(
          "The ManagedOperation attribute is not valid for JavaBean properties. Use ManagedAttribute instead.");
    }

    Annotation ann = AnnotationUtils.getAnnotation(method, org.springframework.jmx.export.annotation.ManagedOperation.class);
    if (ann == null) {
View Full Code Here

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

   */
  @Override
  protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) {
    ManagedResource mr = this.attributeSource.getManagedResource(getClassToExpose(managedBean));
    if (mr == null) {
      throw new InvalidMetadataException(
          "No ManagedResource attribute found for class: " + getClassToExpose(managedBean));
    }

    applyCurrencyTimeLimit(desc, mr.getCurrencyTimeLimit());

View Full Code Here

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

   */
  @Override
  protected void populateMBeanDescriptor(Descriptor desc, Object managedBean, String beanKey) {
    ManagedResource mr = this.attributeSource.getManagedResource(getClassToExpose(managedBean));
    if (mr == null) {
      throw new InvalidMetadataException(
          "No ManagedResource attribute found for class: " + getClassToExpose(managedBean));
    }

    applyCurrencyTimeLimit(desc, mr.getCurrencyTimeLimit());

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.