Package org.jboss.jandex

Examples of org.jboss.jandex.AnnotationValue.asInt()


                if (maxRequestSizeValue != null && maxRequestSizeValue.asLong() != -1L) {
                    multipartConfig.setMaxRequestSize(maxRequestSizeValue.asLong());
                }
                AnnotationValue fileSizeThresholdValue = annotation.value("fileSizeThreshold");
                if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
                    multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
                }
                annotationMD.setMultipartConfig(multipartConfig);
            }
        }
        // @ServletSecurity
View Full Code Here


        return bindingDescription;
    }

    private int asInt(AnnotationInstance annotation, String string) {
        AnnotationValue value = annotation.value(string);
        return value == null ? -1 : value.asInt();
    }

    private String asString(final AnnotationInstance annotation, String property) {
        AnnotationValue value = annotation.value(property);
        return value == null ? null : value.asString();
View Full Code Here

                  String element) {
    AnnotationValue val = annotation.value( element );
    if ( val == null ) {
      return (Integer) getDefaultValue( annotation, element );
    }
    return val.asInt();
  }

  /**
   * Retrieves a jandex annotation element value as a String.  If the value is <code>null</code>, the default value specified in
   * the annotation class is retrieved instead.
View Full Code Here

                if (value != null && deployment.isAutoStart()) {
                    deployment.setAutoStart(value.asBoolean());
                }
                value = marker.value("startLevel");
                if (value != null && deployment.getStartLevel() == null) {
                    deployment.setStartLevel(value.asInt());
                }
            }
        }

        // Attach the deployment
View Full Code Here

                AnnotationValue maxRequestSizeValue = annotation.value("maxRequestSize");
                if (maxRequestSizeValue != null && maxRequestSizeValue.asLong() != -1L) {
                    multipartConfig.setMaxRequestSize(maxRequestSizeValue.asLong());
                }
                AnnotationValue fileSizeThresholdValue = annotation.value("fileSizeThreshold");
                if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
                    multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
                }
                annotationMD.setMultipartConfig(multipartConfig);
            }
        }
View Full Code Here

                if (maxRequestSizeValue != null && maxRequestSizeValue.asLong() != -1L) {
                    multipartConfig.setMaxRequestSize(maxRequestSizeValue.asLong());
                }
                AnnotationValue fileSizeThresholdValue = annotation.value("fileSizeThreshold");
                if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
                    multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
                }
                annotationMD.setMultipartConfig(multipartConfig);
            }
        }
        // @ServletSecurity
View Full Code Here

      this.table = tableValue.asString();
    }

    AnnotationValue lengthValue = columnAnnotation.value( "length" );
    if ( lengthValue != null ) {
      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
View Full Code Here

      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
View Full Code Here

      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
    }
  }

  public final String getName() {
    return name;
View Full Code Here

      if (indexed) {
         AnnotationValue value = annotationInstance == null ? null : annotationInstance.value(property);
         if (value == null)
            return 10;
         else
            return value.asInt();
      } else {
         throw new UnsupportedOperationException("Operation not supported for non-core component " + method);
      }
   }
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.