Package org.springframework.roo.classpath.details.annotations

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.build()


    final AnnotationMetadataBuilder pathVariableAnnotation = new AnnotationMetadataBuilder(
        PATH_VARIABLE, attributes);

    final List<AnnotatedJavaType> parameterTypes = Arrays.asList(
        new AnnotatedJavaType(javaTypePersistenceMetadataHolder
            .getIdentifierType(), pathVariableAnnotation.build()),
        new AnnotatedJavaType(MODEL));
    final List<JavaSymbolName> parameterNames = Arrays.asList(
        new JavaSymbolName(idFieldName), new JavaSymbolName("uiModel"));

    final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
View Full Code Here


    final AnnotationMetadataBuilder validAnnotation = new AnnotationMetadataBuilder(
        VALID);

    final List<AnnotatedJavaType> parameterTypes = Arrays
        .asList(new AnnotatedJavaType(formBackingType, validAnnotation
            .build()), new AnnotatedJavaType(BINDING_RESULT),
            new AnnotatedJavaType(MODEL), new AnnotatedJavaType(
                HTTP_SERVLET_REQUEST));
    final List<JavaSymbolName> parameterNames = Arrays.asList(
        new JavaSymbolName(entityName), new JavaSymbolName(
View Full Code Here

        final List<AnnotatedJavaType> postParamTypes = new ArrayList<AnnotatedJavaType>();
        final AnnotationMetadataBuilder idParamAnnotation = new AnnotationMetadataBuilder(
                PATH_VARIABLE);
        postParamTypes.add(new AnnotatedJavaType(
                new JavaType("java.lang.Long"), idParamAnnotation.build()));
        postParamTypes.add(new AnnotatedJavaType(MODEL_MAP));
        postParamTypes.add(new AnnotatedJavaType(HTTP_SERVLET_REQUEST));
        postParamTypes.add(new AnnotatedJavaType(HTTP_SERVLET_RESPONSE));

        final List<JavaSymbolName> postParamNames = new ArrayList<JavaSymbolName>();
View Full Code Here

        final AnnotationMetadataBuilder requestBodyAnnotation = new AnnotationMetadataBuilder(
                REQUEST_BODY);
        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(JavaType.STRING,
                        requestBodyAnnotation.build()));
        final List<JavaSymbolName> parameterNames = Arrays
                .asList(new JavaSymbolName("json"));

        final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
        requestMappingAttributes.add(new StringAttributeValue(
View Full Code Here

        final AnnotationMetadataBuilder requestBodyAnnotation = new AnnotationMetadataBuilder(
                REQUEST_BODY);
        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(JavaType.STRING,
                    requestBodyAnnotation.build()),
        AnnotatedJavaType.convertFromJavaType(new JavaType(
            "org.springframework.web.util.UriComponentsBuilder")));
        final List<JavaSymbolName> parameterNames = Arrays
            .asList(
        new JavaSymbolName("json"), new JavaSymbolName("uriBuilder"));
View Full Code Here

        final AnnotationMetadataBuilder pathVariableAnnotation = new AnnotationMetadataBuilder(
                PATH_VARIABLE, attributes);

        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(identifierField.getFieldType(),
                        pathVariableAnnotation.build()));
        final List<JavaSymbolName> parameterNames = Arrays
                .asList(identifierField.getFieldName());

        final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
        requestMappingAttributes
View Full Code Here

                attributes.add(new BooleanAttributeValue(new JavaSymbolName(
                        "required"), false));
            }
            final AnnotationMetadataBuilder requestParamAnnotation = new AnnotationMetadataBuilder(
                    REQUEST_PARAM, attributes);
            annotations.add(requestParamAnnotation.build());
            if (field.getFieldType().equals(DATE)
                    || field.getFieldType().equals(CALENDAR)) {
                final AnnotationMetadata annotation = MemberFindingUtils
                        .getAnnotationOfType(field.getAnnotations(),
                                DATE_TIME_FORMAT);
View Full Code Here

        final AnnotationMetadataBuilder pathVariableAnnotation = new AnnotationMetadataBuilder(
                PATH_VARIABLE, attributes);

        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(identifierField.getFieldType(),
                        pathVariableAnnotation.build()));
        final List<JavaSymbolName> parameterNames = Arrays
                .asList(new JavaSymbolName(identifierField.getFieldName()
                        .getSymbolName()));

        final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
View Full Code Here

        final AnnotationMetadataBuilder requestBodyAnnotation = new AnnotationMetadataBuilder(
                REQUEST_BODY);

        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(JavaType.STRING,
                        requestBodyAnnotation.build()));
        final List<JavaSymbolName> parameterNames = Arrays
                .asList(new JavaSymbolName("json"));

        final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
        requestMappingAttributes.add(new StringAttributeValue(
View Full Code Here

        final List<AnnotatedJavaType> parameterTypes = Arrays
                .asList(new AnnotatedJavaType(JavaType.STRING,
                          requestBodyAnnotation.build()),
                        new AnnotatedJavaType(identifierField.getFieldType(),
                            pathVariableAnnotation.build()));
        final List<JavaSymbolName> parameterNames = Arrays
                .asList(new JavaSymbolName("json"),
                        identifierFieldName);

        final List<AnnotationAttributeValue<?>> requestMappingAttributes = new ArrayList<AnnotationAttributeValue<?>>();
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.