Examples of addAnnotation()


Examples of org.springframework.roo.classpath.details.FieldMetadataBuilder.addAnnotation()

        }
        final JavaSymbolName idFieldName = governorTypeDetails
                .getUniqueFieldName("id");
        final FieldMetadataBuilder fieldBuilder = new FieldMetadataBuilder(
                getId(), Modifier.PRIVATE, idFieldName, idType, null);
        fieldBuilder.addAnnotation(new AnnotationMetadataBuilder(
                SpringJavaType.DATA_ID));
        return fieldBuilder.build();
    }

    private MethodMetadataBuilder getIdentifierMutator() {
View Full Code Here

Examples of org.springframework.roo.classpath.details.MethodMetadataBuilder.addAnnotation()

        final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
                getId(), Modifier.PUBLIC, methodName, JavaType.VOID_PRIMITIVE,
                new ArrayList<AnnotatedJavaType>(),
                new ArrayList<JavaSymbolName>(), bodyBuilder);
        methodBuilder.addAnnotation(new AnnotationMetadataBuilder(
                POST_CONSTRUCT));
        return methodBuilder;
    }

    private AnnotationMetadata getManagedBeanAnnotation() {
View Full Code Here

Examples of org.teiid.query.analysis.AnalysisRecord.addAnnotation()

        assertTrue(rec.recordAnnotations());
       
        Annotation ann1 = new Annotation("cat", "ann", "res", Priority.MEDIUM); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        Annotation ann2 = new Annotation("cat2", "ann2", "res2", Priority.HIGH); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
     
        rec.addAnnotation(ann1);
        rec.addAnnotation(ann2);
       
        Collection<Annotation> annotations = rec.getAnnotations();
        assertEquals(2, annotations.size());
        assertTrue(annotations.contains(ann1));
View Full Code Here

Examples of org.zkoss.zk.ui.sys.ComponentCtrl.addAnnotation()

      final Object[] info = (Object[])it.next();
      final String annotName = (String)info[0];
      final Map annotAttrs = (Map)info[1];
      ComponentCtrl ctrl = (ComponentCtrl) comp;
      if (propName != null)
        ctrl.addAnnotation(propName, annotName, annotAttrs);
      else
        ctrl.addAnnotation(annotName, annotAttrs);
    }
    if (clear)
      _annots.clear();
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.